Skip to content

fix: handle unchecked error return values#25

Merged
thrawn01 merged 1 commit intomainfrom
fix/lint-errcheck-v2
Dec 25, 2025
Merged

fix: handle unchecked error return values#25
thrawn01 merged 1 commit intomainfrom
fix/lint-errcheck-v2

Conversation

@thrawn01
Copy link
Contributor

Purpose

Fix errcheck linter warnings that were causing CI failures after merging PR #21.

Implementation

  • Wrapped deferred r.Body.Close() call in handleRemoveKeysRequest with anonymous function and explicit ignore
  • Wrapped deferred res.Body.Close() call in RemoveKeys with anonymous function and explicit ignore

Wrap deferred Close() calls in anonymous functions with explicit ignore
to satisfy errcheck linter.
@thrawn01 thrawn01 self-assigned this Dec 25, 2025
@thrawn01 thrawn01 merged commit 2b45fe9 into main Dec 25, 2025
1 check passed
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