diff --git a/cmd/appstate.go b/cmd/appstate.go index 96e2969d5..887be2cca 100644 --- a/cmd/appstate.go +++ b/cmd/appstate.go @@ -6,6 +6,7 @@ import ( "errors" "fmt" "io" + "io/fs" "os" "path" @@ -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