do it better and *make it work*
This commit is contained in:
parent
dec40965a1
commit
ede17f2eda
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user