Skip to content

Commit

Permalink
Merge pull request #31 from emperror/lint
Browse files Browse the repository at this point in the history
Fix lint
  • Loading branch information
sagikazarmark authored May 27, 2022
2 parents fd7ad23 + 12ea9b9 commit 7d0c4c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ linters:
- nakedret
- nlreturn
- noctx
- nolintlint
# - nolintlint
- prealloc
- rowserrcheck
- scopelint
Expand Down
2 changes: 1 addition & 1 deletion error_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions wrap_go1_13.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.13
// +build go1.13

package errors
Expand Down

0 comments on commit 7d0c4c2

Please sign in to comment.