diff --git a/paths/func.go b/paths/func.go index ba22790..b1b1e12 100644 --- a/paths/func.go +++ b/paths/func.go @@ -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