Skip to content

Commit

Permalink
nitmergelines
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Oct 31, 2024
1 parent af413de commit be77753
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/gcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit be77753

Please sign in to comment.