mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
Fix Panic in Wallet HasDir() (#6857)
* fix panic in has dir * Merge refs/heads/master into has-dir-panic * Merge refs/heads/master into has-dir-panic * Merge refs/heads/master into has-dir-panic * Merge refs/heads/master into has-dir-panic * Merge refs/heads/master into has-dir-panic
This commit is contained in:
parent
bc883aab9e
commit
1f9d155f0e
@ -700,6 +700,9 @@ func hasDir(dirPath string) (bool, error) {
|
|||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
if info == nil {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
return info.IsDir(), err
|
return info.IsDir(), err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user