mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 04:17: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) {
|
||||
return false, nil
|
||||
}
|
||||
if info == nil {
|
||||
return false, nil
|
||||
}
|
||||
return info.IsDir(), err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user