fixing bug- wrong bool state check for RealPathExists.

This commit is contained in:
brent s. 2022-02-11 03:27:01 -05:00
parent 008ed531a2
commit ecea194c0f
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -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