Skip to content

Commit

Permalink
Update cmd/gen.go
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Cawood <luke.cawood@99designs.com>
  • Loading branch information
mtibben and lwc authored Sep 9, 2021
1 parent a991e3e commit 60d80d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var genCmd = &cli.Command{
}
} else {
cfg, err = config.LoadConfigFromDefaultLocations()
if os.IsNotExist(errors.Unwrap(err)) {
if errors.Is(err, fs.ErrNotExist) {
cfg, err = config.LoadDefaultConfig()
}

Expand Down

0 comments on commit 60d80d4

Please sign in to comment.