Skip to content

Commit 6579ca5

Browse files
committed
Fixes for golangci-lint v2.2.0
1 parent 5b10e59 commit 6579ca5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ linters:
2121
- interfacebloat
2222
- mnd
2323
- nlreturn
24+
- noinlineerr
2425
- nonamedreturns
2526
- paralleltest
2627
- testpackage
2728
- thelper
2829
- varnamelen
2930
- wrapcheck
3031
- wsl
32+
- wsl_v5
3133
settings:
3234
errorlint:
3335
errorf: true

internal/decoder/decoder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ func ExampleDecoder_PeekKind() {
530530
}
531531

532532
if typ != typ2 {
533-
fmt.Printf("ERROR: PeekKind consumed the value!\n")
533+
fmt.Println("ERROR: PeekKind consumed the value!")
534534
}
535535
}
536536

reader_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,10 @@ type NestedPointerMapX struct {
454454

455455
type PointerMap struct {
456456
MapX struct {
457-
Ignored string
458457
NestedMapX
459458
*NestedPointerMapX
459+
460+
Ignored string
460461
} `maxminddb:"mapX"`
461462
}
462463

0 commit comments

Comments
 (0)