Skip to content

Fix golangci-lint issues#2

Merged
andrew merged 1 commit into
mainfrom
fix-lint-issues
Mar 29, 2026
Merged

Fix golangci-lint issues#2
andrew merged 1 commit into
mainfrom
fix-lint-issues

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Mar 18, 2026

  • Convert if-else chain to switch statement in Between()
  • Extract magic numbers to named constants in RawContentURL()
  • Remove always-constant year param from assertDate test helper
  • Split TestEdgeCases into two functions to reduce cognitive complexity

- Convert if-else chain to switch in Between()
- Extract magic numbers to named constants in RawContentURL()
- Remove always-constant year param from assertDate test helper
- Split TestEdgeCases to reduce cognitive complexity
@andrew andrew merged commit 95fa215 into main Mar 29, 2026
2 checks 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