Browse Source

label-tool: cleanup

master
Přemysl Janouch 9 months ago
parent
commit
3fe6d7d071
Signed by: Přemysl Janouch <p@janouch.name> GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      label-tool/main.go

+ 3
- 3
label-tool/main.go View File

@@ -217,10 +217,10 @@ func main() {
log.Fatalf("usage: %s ADDRESS BDF-FILE\n", os.Args[0])
}

address, bdf_path := os.Args[1], os.Args[2]
address, bdfPath := os.Args[1], os.Args[2]

var err error
fi, err := os.Open(bdf_path)
fi, err := os.Open(bdfPath)
if err != nil {
log.Fatalln(err)
}
@@ -235,5 +235,5 @@ func main() {

log.Println("starting server")
http.HandleFunc("/", handle)
log.Fatal(http.ListenAndServe(address, nil))
log.Fatalln(http.ListenAndServe(address, nil))
}

Loading…
Cancel
Save