Skip to content

Commit e6e0f6a

Browse files
committed
Fix linting issues
1 parent b784021 commit e6e0f6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

reader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ type mmapCleanup struct {
135135
// All of the methods on Reader are thread-safe. The struct may be safely
136136
// shared across goroutines.
137137
type Reader struct {
138-
buffer []byte
138+
hasMappedFile *atomic.Bool
139139
decoder decoder.ReflectionDecoder
140+
buffer []byte
140141
Metadata Metadata
141142
ipv4Start uint
142143
ipv4StartBitDepth int
143144
nodeOffsetMult uint
144-
hasMappedFile *atomic.Bool
145145
}
146146

147147
// Metadata holds the metadata decoded from the MaxMind DB file.

reader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func TestReaderLeaks(t *testing.T) {
7878
// We intentionally do NOT call Close() to test if GC picks it up
7979
// and if AddCleanup doesn't prevent it.
8080

81-
runtime.SetFinalizer(r, func(obj *Reader) {
81+
runtime.SetFinalizer(r, func(*Reader) {
8282
close(collected)
8383
})
8484
}()

0 commit comments

Comments
 (0)