fix lint check

This commit is contained in:
zgfzgf 2020-11-26 21:36:40 +08:00
parent fad250058d
commit 32c159fa3a

View File

@ -306,7 +306,7 @@ func (w *LocalWallet) walletDelete(ctx context.Context, addr address.Address) er
return nil return nil
} }
func (w *LocalWallet) deleteDefault() error { func (w *LocalWallet) deleteDefault() {
w.lk.Lock() w.lk.Lock()
defer w.lk.Unlock() defer w.lk.Unlock()
if err := w.keystore.Delete(KDefault); err != nil { if err := w.keystore.Delete(KDefault); err != nil {
@ -314,7 +314,6 @@ func (w *LocalWallet) deleteDefault() error {
log.Warnf("failed to unregister current default key: %s", err) log.Warnf("failed to unregister current default key: %s", err)
} }
} }
return nil
} }
func (w *LocalWallet) WalletDelete(ctx context.Context, addr address.Address) error { func (w *LocalWallet) WalletDelete(ctx context.Context, addr address.Address) error {