fixing bug- wrong bool state check for RealPathExists.
This commit is contained in:
parent
008ed531a2
commit
ecea194c0f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user