Skip to content

Commit

Permalink
Use errors.New
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaos committed Apr 1, 2021
1 parent 6439bcc commit 6c1a7d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package importas

import (
"errors"
"fmt"
"regexp"
)
Expand Down Expand Up @@ -63,5 +64,5 @@ func (r *Rule) aliasFor(path string) (string, error) {
return r.Regexp.ReplaceAllString(str, r.Alias), nil
}

return "", fmt.Errorf("mismatch rule")
return "", errors.New("mismatch rule")
}

0 comments on commit 6c1a7d7

Please sign in to comment.