mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
accounts/usbwallet: simplify close
This commit is contained in:
parent
689ab1a805
commit
df99693ad0
1 changed files with 1 additions and 6 deletions
|
|
@ -273,12 +273,7 @@ func (w *wallet) close() error {
|
|||
w.device = nil
|
||||
|
||||
w.accounts, w.paths = nil, nil
|
||||
err := w.driver.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return w.driver.Close()
|
||||
}
|
||||
|
||||
// Accounts implements accounts.Wallet, returning the list of accounts pinned to
|
||||
|
|
|
|||
Loading…
Reference in a new issue