Skip to content

Commit 7d0c4c2

Browse files
Merge pull request #31 from emperror/lint
Fix lint
2 parents fd7ad23 + 12ea9b9 commit 7d0c4c2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ linters:
4747
- nakedret
4848
- nlreturn
4949
- noctx
50-
- nolintlint
50+
# - nolintlint
5151
- prealloc
5252
- rowserrcheck
5353
- scopelint

error_details.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func WithDetails(err error, details ...interface{}) error {
3030
// Limiting the capacity of the stored keyvals ensures that a new
3131
// backing array is created if the slice must grow in With.
3232
// Using the extra capacity without copying risks a data race.
33-
d := append(w.details, details...)
33+
d := append(w.details, details...) // nolint:gocritic
3434
w.details = d[:len(d):len(d)]
3535

3636
return err

wrap_go1_13.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build go1.13
12
// +build go1.13
23

34
package errors

0 commit comments

Comments
 (0)