Skip to content

fix(lint): resolve golangci-lint findings from v1.4.0 - #46

Merged
jasonmassie01 merged 1 commit into
masterfrom
fix/v1.4.0-lint
Jul 23, 2026
Merged

fix(lint): resolve golangci-lint findings from v1.4.0#46
jasonmassie01 merged 1 commit into
masterfrom
fix/v1.4.0-lint

Conversation

@jasonmassie01

Copy link
Copy Markdown
Owner

Fixes the 8 golangci-lint findings that failed the Test workflow's lint job on master after #45:

  • errcheck: deferred response.Body.Close() (clone/dle_provider ×3), writer.Flush() (mcp/runtime), tx.Rollback (policy/store)
  • staticcheck QF1003: tagged switch on freeze response kind
  • unused: deleted setFleetRolloutRuntimeFactory and unattendedDocument

Verified locally with CI's exact linter (golangci-lint v2.11.4): 0 issues. Touched packages re-tested green against the test database.

🤖 Generated with Claude Code

- Check deferred Close/Flush/Rollback error returns in clone, mcp, and
  policy (errcheck)
- Use a tagged switch on freeze response kind (staticcheck QF1003)
- Delete unused setFleetRolloutRuntimeFactory and unattendedDocument

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jasonmassie01
jasonmassie01 merged commit 7c238f3 into master Jul 23, 2026
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