Skip to content

Commit a584c61

Browse files
committed
Fix lints with new golangci-lint
The comment on "iter" is because the linter was not stable and kept on shifting it every time it ran.
1 parent 13ed83b commit a584c61

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

decoder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const (
3030
_Slice
3131
// We don't use the next two. They are placeholders. See the spec
3232
// for more details.
33-
_Container //nolint: deadcode, varcheck // above
34-
_Marker //nolint: deadcode, varcheck // above
33+
_Container //nolint:deadcode,varcheck // above
34+
_Marker //nolint:deadcode,varcheck // above
3535
_Bool
3636
_Float32
3737
)

traverse.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"net/netip"
66

7+
// comment to prevent gofumpt from randomly moving iter.
78
"iter"
89
)
910

0 commit comments

Comments
 (0)