fixing bug- wrong bool state check for RealPathExists.

This commit is contained in:
2022-02-11 03:27:01 -05:00
parent 008ed531a2
commit d86e23ae3b

View File

@@ -164,7 +164,7 @@ func RealPathExists(path *string) (exists bool, err error) {
} }
if _, err = os.Stat(*path); err != nil { if _, err = os.Stat(*path); err != nil {
if !errors.Is(err, fs.ErrNotExist) { if errors.Is(err, fs.ErrNotExist) {
err = nil err = nil
} }
return return