diff --git a/cmd/gcp/main.go b/cmd/gcp/main.go index 38b485e..d3b04dd 100644 --- a/cmd/gcp/main.go +++ b/cmd/gcp/main.go @@ -178,8 +178,7 @@ func main() { klog.Info("HTTP server shutdown") }) - err = srv.ListenAndServe() - if err != http.ErrServerClosed { + if err := srv.ListenAndServe(); err != http.ErrServerClosed { klog.Warningf("Server exited: %v", err) } // Wait will only block if the function passed to awaitSignal was called,