Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Nov 10, 2023
1 parent 478a46b commit b3b369b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/appstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"io"
"io/fs"
"os"
"path"

Expand Down Expand Up @@ -40,7 +41,7 @@ func (a *appState) loadConfigFile(ctx context.Context) error {

if _, err := os.Stat(cfgPath); err != nil {
// don't return error if file doesn't exist
if os.IsExist(err) {
if errors.Is(err, fs.ErrNotExist) {
err = nil
}
return err
Expand Down

0 comments on commit b3b369b

Please sign in to comment.