accounts/usbwallet: simplify close

This commit is contained in:
Péter Szilágyi 2019-03-07 12:11:33 +02:00 committed by GitHub
parent 689ab1a805
commit df99693ad0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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