0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-30 22:34:18 -05:00

directly wrap ListenAndServe in log.Fatal call

This commit is contained in:
Will Norris 2015-12-04 15:36:04 -08:00
parent 8038795e8c
commit 9d4058ca58

View file

@ -103,8 +103,5 @@ func main() {
} }
fmt.Printf("imageproxy (version %v) listening on %s\n", VERSION, server.Addr) fmt.Printf("imageproxy (version %v) listening on %s\n", VERSION, server.Addr)
err := server.ListenAndServe() log.Fatal(server.ListenAndServe())
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
} }