Skip to content

Commit

Permalink
change file not exist error handling
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas L. <[email protected]>
  • Loading branch information
phm07 and jooola authored Jan 4, 2024
1 parent 6597bd5 commit f5a7833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func ReadConfig(path string) (*Config, error) {
_, err := os.Stat(path)
if err != nil {
if os.IsNotExist(err) {
err = nil
return cfg, nil
}
return cfg, err
}
Expand Down

0 comments on commit f5a7833

Please sign in to comment.