Skip to content

Fix lint errors: errcheck, nilerr, and govet shadow#11

Merged
jcleira merged 1 commit intomasterfrom
fix-linting
Feb 13, 2026
Merged

Fix lint errors: errcheck, nilerr, and govet shadow#11
jcleira merged 1 commit intomasterfrom
fix-linting

Conversation

@jcleira
Copy link
Owner

@jcleira jcleira commented Feb 13, 2026

  • Objective

Resolve all reported lint issues, including errcheck, nilerr, and govet shadow warnings.

  • Why

Unchecked errors and shadowed variables can hide failures and lead to unreliable behavior in production and tests.

  • How

Handle return values from errgroup.Wait() and
semaphore.Acquire() instead of discarding them.

Propagate errors returned by GetAllBranches during branch listing.

Rename shadowed err variables in tests and ensure all error returns in test helpers are properly checked.

* Objective

Resolve all reported lint issues, including errcheck, nilerr,
and govet shadow warnings.

* Why

Unchecked errors and shadowed variables can hide failures and
lead to unreliable behavior in production and tests.

* How

Handle return values from errgroup.Wait() and
semaphore.Acquire() instead of discarding them.

Propagate errors returned by GetAllBranches during branch
listing.

Rename shadowed err variables in tests and ensure all error
returns in test helpers are properly checked.
@jcleira jcleira merged commit 3f06ca9 into master Feb 13, 2026
4 checks passed
@jcleira jcleira deleted the fix-linting branch February 13, 2026 11:01
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