Skip to content

Agent Mesh

fix lint

Antonio Ojea8b87a5bae5b0
diff --git a/cmd/sam-hub/http.go b/cmd/sam-hub/http.go
index 969beea5..2c0e7320 100644
--- a/cmd/sam-hub/http.go
+++ b/cmd/sam-hub/http.go
@@ -106,7 +106,7 @@ func (h *Hub) handleCallback(w http.ResponseWriter, r *http.Request) {
http.Error(w, "Failed to fetch user info from OAuth2 provider", 500)
return
}
- defer resp.Body.Close()
+ defer func() { _ = resp.Body.Close() }()
var userData map[string]interface{}
if err := json.NewDecoder(resp.Body).Decode(&userData); err != nil {