Skip to content

Commit 7e9755c

Browse files
authored
Update GolangCI-lint to v1.62.2 (#237)
1 parent 1821ab5 commit 7e9755c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ issues:
118118
# golangci.com configuration
119119
# https://github.com/golangci/golangci/wiki/Configuration
120120
service:
121-
golangci-lint-version: 1.60.x # use the fixed version to not introduce new linters unexpectedly
121+
golangci-lint-version: 1.62.x # use the fixed version to not introduce new linters unexpectedly
122122
prepare:
123123
- echo "here I can run custom commands, but no preparation needed for this repo"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ GO_PACKAGES=$(shell go list ./... | grep -v vendor)
2525
vet
2626

2727
OCT_TOOL_NAME=oct
28-
GOLANGCI_VERSION=v1.60.3
28+
GOLANGCI_VERSION=v1.62.2
2929

3030
# Run the unit tests and build all binaries
3131
build:

cmd/tnf/fetch/fetch.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ func getOperatorCatalog(data *CertifiedCatalog) error {
226226
}
227227

228228
log.Infof("Certified operators in the online catalog: %d, page size: %d", total, pageSize)
229+
// convert data.Operators to uint to compare with total
230+
231+
//nolint:gosec
229232
if total == uint(data.Operators) {
230233
log.Info("No new certified operator found")
231234
return nil

0 commit comments

Comments
 (0)