From ecea194c0f0760d4f6e6291ad5c9e9d86745d1d2 Mon Sep 17 00:00:00 2001 From: brent s Date: Fri, 11 Feb 2022 03:27:01 -0500 Subject: [PATCH] fixing bug- wrong bool state check for RealPathExists. --- paths/funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paths/funcs.go b/paths/funcs.go index 0bf01e7..802b96e 100644 --- a/paths/funcs.go +++ b/paths/funcs.go @@ -164,7 +164,7 @@ func RealPathExists(path *string) (exists bool, err error) { } if _, err = os.Stat(*path); err != nil { - if !errors.Is(err, fs.ErrNotExist) { + if errors.Is(err, fs.ErrNotExist) { err = nil } return