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 d86e23ae3b
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
1 changed files with 1 additions and 1 deletions

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