Skip to content

Commit

Permalink
Lint Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeschuurmans committed Nov 1, 2024
1 parent 8a3f54f commit 4590e63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.57.1
version: v1.61.0
args: --timeout=5m
skip-cache: true

Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ linters:
- bodyclose
- gocritic
- gocyclo
- goerr113
- err113
- gofmt
# - gofumpt
- goimports
- gomnd
- mnd
- govet
- misspell
- noctx
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1/router_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (r *Router) getServerEvents(c *gin.Context) {
}

limit := pageParams.Limit // default is 100
if limit > 1000 { //nolint:gomnd // it's fine
if limit > 1000 { //nolint:mnd // it's fine
limit = 1000 // more than 1000 event records in a single shot is sus
}

Expand Down

0 comments on commit 4590e63

Please sign in to comment.