Skip to content

Commit

Permalink
Merge pull request #103 from maxmind/greg/update-golangci-lint
Browse files Browse the repository at this point in the history
Update golangci-lint
  • Loading branch information
horgh authored Jan 2, 2025
2 parents aee1897 + e567499 commit 22a6ea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions mmdbtype/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import (
"math/big"
"math/bits"
"reflect"

// TODO: Once the min Go version is 1.21, switch this to "slices".
"golang.org/x/exp/slices"
"slices"
)

type typeNum byte
Expand Down
2 changes: 1 addition & 1 deletion tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ func TestTreeInsertAndGet(t *testing.T) {

assert.Equal(t, int64(buf.Len()), numBytes, "number of bytes")

f, err := os.CreateTemp("", "mmdbwriter")
f, err := os.CreateTemp(t.TempDir(), "mmdbwriter")
require.NoError(t, err)
defer func() { require.NoError(t, os.Remove(f.Name())) }()

Expand Down

0 comments on commit 22a6ea0

Please sign in to comment.