Skip to content

Commit

Permalink
Fix complaint raised by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Aug 20, 2024
1 parent 9e0dcf7 commit da62a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ linters:
- govet
output:
formats:
- format: github-actions
- format: colored-line-number
2 changes: 1 addition & 1 deletion internal/errwrap/wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Wrap(err error, msg string) error {
chunks := strings.Split(frame.Function, "/")
withCaller := fmt.Sprintf("%s: %s", chunks[len(chunks)-1], msg)
if err == nil {
return fmt.Errorf(withCaller)
return errors.New(withCaller)
}
return fmt.Errorf("%s: %w", withCaller, err)
}
Expand Down

0 comments on commit da62a74

Please sign in to comment.