aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/keystore/account_cache.go
diff options
context:
space:
mode:
authorWenbiao Zheng <delweng@gmail.com>2018-11-29 18:04:56 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-29 18:04:56 +0800
commit32d35c9c088463efac49aeb0f3e6d48cfb373a40 (patch)
treefb414241de45f63e1215edba95d5d432d18f6e1e /accounts/keystore/account_cache.go
parenta4428c505e84aaa1982d4cc522e0c0ffe608890a (diff)
downloaddexon-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar
dexon-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.gz
dexon-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.bz2
dexon-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.lz
dexon-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.xz
dexon-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.zst
dexon-32d35c9c088463efac49aeb0f3e6d48cfb373a40.zip
accounts/keystore: delete the redundant keystore in filename (#17930)
* accounts/keystore: reduce file name length * accounts/keystore: reduce code line width
Diffstat (limited to 'accounts/keystore/account_cache.go')
-rw-r--r--accounts/keystore/account_cache.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go
index da3a46eb8..8f660e282 100644
--- a/accounts/keystore/account_cache.go
+++ b/accounts/keystore/account_cache.go
@@ -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
}