do it better and *make it work*

This commit is contained in:
brent s 2021-03-31 18:20:52 -04:00
parent dec40965a1
commit ede17f2eda
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -141,7 +141,7 @@ func RealPathExists(path *string) (exists bool, err error) {
if err = RealPath(path); err != nil {
return
}
if _, err := os.Stat(*path); err != nil {
if _, err = os.Stat(*path); err != nil {
if os.IsNotExist(err) {
exists = false
err = nil