Skip to content

Commit

Permalink
use error wrapping (no real effect here)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitranim committed May 7, 2021
1 parent f1abbc7 commit 25e28fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gow.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func allowByIgnoredPaths(absPath string) (bool, error) {

cwd, err := os.Getwd()
if err != nil {
return false, fmt.Errorf(`failed to get working directory: %v`, err)
return false, fmt.Errorf(`failed to get working directory: %w`, err)
}

for _, ignored := range IGNORED_PATHS.values {
Expand Down

0 comments on commit 25e28fe

Please sign in to comment.