Fix lint violations
What does this MR do?
This MR fixes lint violations.
Note: Lint violations in spotbugs have been fixed in Fix lint violations (!207 - merged) • Adam Cohen • 17.4. But golangci-lint
was upgraded from v1.50.1
to v1.60.3
in Upgrade golangci-lint from v1.50.1 to v1.60.3 (gitlab-org/security-products/ci-templates!401 - merged) • Adam Cohen • 17.5, which leads to new lint violations.
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests updated/added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer