Skip to content

Commit

Permalink
[error] fix error wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-ba committed Jan 20, 2023
1 parent 30c2c31 commit 9eb8c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type FullError struct {

// Wrap will wrap the given error and return a new Error.
func Wrap(err error) Error {
if err != nil {
if err == nil {
return nil
}

Expand Down

0 comments on commit 9eb8c26

Please sign in to comment.