Skip to content

Commit

Permalink
Fix lints with new golangci-lint
Browse files Browse the repository at this point in the history
The comment on "iter" is because the linter was not stable and kept on
shifting it every time it ran.
  • Loading branch information
oschwald committed Aug 15, 2024
1 parent db4d4a8 commit 365e5de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const (
_Slice
// We don't use the next two. They are placeholders. See the spec
// for more details.
_Container //nolint: deadcode, varcheck // above
_Marker //nolint: deadcode, varcheck // above
_Container //nolint:deadcode,varcheck // above
_Marker //nolint:deadcode,varcheck // above
_Bool
_Float32
)
Expand Down
1 change: 1 addition & 0 deletions traverse.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"net/netip"

// comment to prevent gofumpt from randomly moving iter.
"iter"
)

Expand Down

0 comments on commit 365e5de

Please sign in to comment.