Remove closure over a range iterator.
This commit is contained in:
parent
df18578bc9
commit
03a45d7aa0
1 changed files with 2 additions and 2 deletions
|
@ -716,11 +716,11 @@ func (am *AccountManager) ChangePassphrase(old, new []byte) error {
|
|||
if err := a.Wallet.Unlock(old); err != nil {
|
||||
return err
|
||||
}
|
||||
defer func() {
|
||||
defer func(a *Account) {
|
||||
if err := a.Lock(); err != nil {
|
||||
log.Warnf("Cannot lock account: %v", err)
|
||||
}
|
||||
}()
|
||||
}(a)
|
||||
}
|
||||
|
||||
// Change passphrase for each unlocked wallet.
|
||||
|
|
Loading…
Reference in a new issue