From be777530684c306cdd08b292cacf1780549755f5 Mon Sep 17 00:00:00 2001 From: Philippe Boneff Date: Thu, 31 Oct 2024 13:02:13 +0000 Subject: [PATCH] nitmergelines --- cmd/gcp/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,