diff --git a/cmd/agedit/cli.go b/cmd/agedit/cli.go index 77f6d79..56bb8cc 100644 --- a/cmd/agedit/cli.go +++ b/cmd/agedit/cli.go @@ -115,7 +115,7 @@ func before(ctx *cli.Context) error { // load config from file _, err := os.Open(configFile) - if err != nil && !errors.Is(err, os.ErrNotExist) { + if err != nil && errors.Is(err, os.ErrNotExist) { // or not logger.Debug("couldn't load config file", "file", configFile) } else {