From 9d4058ca58132582bcd1d17c80b38de571c5416f Mon Sep 17 00:00:00 2001 From: Will Norris Date: Fri, 4 Dec 2015 15:36:04 -0800 Subject: [PATCH] directly wrap ListenAndServe in log.Fatal call --- cmd/imageproxy/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/imageproxy/main.go b/cmd/imageproxy/main.go index 8ee2add..ab4271e 100644 --- a/cmd/imageproxy/main.go +++ b/cmd/imageproxy/main.go @@ -103,8 +103,5 @@ func main() { } fmt.Printf("imageproxy (version %v) listening on %s\n", VERSION, server.Addr) - err := server.ListenAndServe() - if err != nil { - log.Fatal("ListenAndServe: ", err) - } + log.Fatal(server.ListenAndServe()) }