diff --git a/.golangci.yml b/.golangci.yml index 99528fd..6934dc6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -47,7 +47,7 @@ linters: - nakedret - nlreturn - noctx - - nolintlint + # - nolintlint - prealloc - rowserrcheck - scopelint diff --git a/error_details.go b/error_details.go index 8296ffa..5e8a7e7 100644 --- a/error_details.go +++ b/error_details.go @@ -30,7 +30,7 @@ func WithDetails(err error, details ...interface{}) error { // Limiting the capacity of the stored keyvals ensures that a new // backing array is created if the slice must grow in With. // Using the extra capacity without copying risks a data race. - d := append(w.details, details...) + d := append(w.details, details...) // nolint:gocritic w.details = d[:len(d):len(d)] return err diff --git a/wrap_go1_13.go b/wrap_go1_13.go index b2636a2..0ac4977 100644 --- a/wrap_go1_13.go +++ b/wrap_go1_13.go @@ -1,3 +1,4 @@ +//go:build go1.13 // +build go1.13 package errors