Skip to content

Commit 3c9ca6e

Browse files
committed
fix: correct file existence check in utils/file.go
1 parent 5e9a744 commit 3c9ca6e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utils/file.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package utils
22

33
import (
4-
"errors"
5-
"io/fs"
64
"os"
75
"path/filepath"
86
)
@@ -11,7 +9,7 @@ func IsPathExist(path string) bool {
119
var err error
1210
_, err = os.Stat(path)
1311
if err != nil {
14-
return errors.Is(err, fs.ErrExist)
12+
return false
1513
}
1614
return true
1715
}

0 commit comments

Comments
 (0)