label-tool: cleanup
This commit is contained in:
parent
fd347fa1eb
commit
3fe6d7d071
|
@ -217,10 +217,10 @@ func main() {
|
||||||
log.Fatalf("usage: %s ADDRESS BDF-FILE\n", os.Args[0])
|
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
|
var err error
|
||||||
fi, err := os.Open(bdf_path)
|
fi, err := os.Open(bdfPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
@ -235,5 +235,5 @@ func main() {
|
||||||
|
|
||||||
log.Println("starting server")
|
log.Println("starting server")
|
||||||
http.HandleFunc("/", handle)
|
http.HandleFunc("/", handle)
|
||||||
log.Fatal(http.ListenAndServe(address, nil))
|
log.Fatalln(http.ListenAndServe(address, nil))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue