diff --git a/internal/cmd/genmodels/main.go b/internal/cmd/genmodels/main.go index ea4792d7c..7be707fe4 100644 --- a/internal/cmd/genmodels/main.go +++ b/internal/cmd/genmodels/main.go @@ -96,7 +96,7 @@ func main() { fmt.Fprintf(os.Stderr, "cannot fetch models: %v\n", err) os.Exit(1) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() if resp.StatusCode != http.StatusOK { fmt.Fprintf(os.Stderr, "cannot fetch models: unexpected status %s\n", resp.Status)