Skip to content

Commit

Permalink
Fix error return
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepartridge committed Feb 28, 2019
1 parent 4ca066d commit b7b78a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ var (

// ErrReplacer allows for static errors to have dynamic values
func ErrReplacer(err error, replacers ...interface{}) error {
return errors.New(fmt.Errorf(err.Error(), replacers...))
return fmt.Errorf(err.Error(), replacers...)
}

0 comments on commit b7b78a5

Please sign in to comment.