Skip to content

fix(fast-deploy): errcheck res.Body.Close in cfkv#30

Merged
hugo-ccabral merged 1 commit into
mainfrom
fix/cfkv-errcheck-body-close
Jul 9, 2026
Merged

fix(fast-deploy): errcheck res.Body.Close in cfkv#30
hugo-ccabral merged 1 commit into
mainfrom
fix/cfkv-errcheck-body-close

Conversation

@hugo-ccabral

@hugo-ccabral hugo-ccabral commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

golangci-lint (errcheck) went red on main after #29 merged: internal/deploy/cfkv.go:35 deferred res.Body.Close() without discarding the error. Wrap it (defer func() { _ = res.Body.Close() }()). Lint-only — no behavior change, and the v0.10.0 release image/chart are unaffected (that workflow doesn't run golangci-lint).

🤖 Generated with Claude Code


Summary by cubic

Fixes golangci-lint errcheck by wrapping res.Body.Close() in internal/deploy/cfkv.go to explicitly discard the error. No behavior change; restores green CI for fast-deploy.

Written for commit 228498f. Summary will update on new commits.

Review in cubic

golangci-lint errcheck flagged the deferred res.Body.Close() in the index:live
REST GET. Discard the return explicitly. No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hugo-ccabral hugo-ccabral merged commit 9505c36 into main Jul 9, 2026
5 checks passed
@hugo-ccabral hugo-ccabral deleted the fix/cfkv-errcheck-body-close branch July 9, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant