accounts/keystore: delete the redundant keystore in filename (#17930)

* accounts/keystore: reduce file name length

* accounts/keystore: reduce code line width
This commit is contained in:
Wenbiao Zheng
2018-11-29 18:04:56 +08:00
committed by Péter Szilágyi
parent a4428c505e
commit 32d35c9c08
8 changed files with 18 additions and 4 deletions

View File

@ -265,7 +265,10 @@ func (ac *accountCache) scanAccounts() error {
case (addr == common.Address{}):
log.Debug("Failed to decode keystore key", "path", path, "err", "missing or zero address")
default:
return &accounts.Account{Address: addr, URL: accounts.URL{Scheme: KeyStoreScheme, Path: path}}
return &accounts.Account{
Address: addr,
URL: accounts.URL{Scheme: KeyStoreScheme, Path: path},
}
}
return nil
}