diff --git a/.golangci.yaml b/.golangci.yaml index e505cd2..1a26a7d 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -84,9 +84,11 @@ linters: enable: - megacheck - govet + - exportloopref enable-all: false disable: - maligned + - scopelint - prealloc - cyclop - funlen diff --git a/unpack_test.go b/unpack_test.go index abbf454..fe639dc 100644 --- a/unpack_test.go +++ b/unpack_test.go @@ -135,7 +135,6 @@ func TestStringSetter(t *testing.T) { assert.Equalf(t, want, fmt.Sprintf("%+v", ge.Interface()), "got setting %s to '%s'", f.Name, value) } count++ - return }) return true })