修正格式。

Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
rick.chan 2024-05-10 14:26:54 +08:00
parent e42d439efc
commit 9c1cb4074f
1 changed files with 6 additions and 6 deletions

View File

@ -42,13 +42,13 @@ func IsPathExist(path string) bool {
```go
func isFileExist(filename string) bool {
info, e := os.Stat(filename)
info, e := os.Stat(filename)
if e == nil {
return !info.IsDir()
} else {
return os.IsExist(e)
}
if e == nil {
return !info.IsDir()
} else {
return os.IsExist(e)
}
}
```