forked from cerc-io/plugeth
all: use common.FileExist for checking file existence (#24748)
This commit is contained in:
@@ -497,7 +497,7 @@ Check the command description "geth snapshot prune-state --help" for more detail
|
||||
`
|
||||
|
||||
func deleteCleanTrieCache(path string) {
|
||||
if _, err := os.Stat(path); os.IsNotExist(err) {
|
||||
if !common.FileExist(path) {
|
||||
log.Warn(warningLog)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user