Skip to content

Commit

Permalink
Fix linter error.
Browse files Browse the repository at this point in the history
  • Loading branch information
anchaj committed Mar 12, 2020
1 parent fd47aa3 commit 86d6caa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func (n *OpenBazaarNode) UnlockWallet(unlockWallet ManageWalletRequest) (bool, b
// Checks password, fails when mnemonic in not encrypted!
decryptedMnemonic, err := DecryptMnemonic(mnemonic, unlockWallet.WalletPassword)
if err != nil {
return n.WalletLocked, isMnemonicEncrypted, err
return n.WalletLocked, isMnemonicEncrypted, err
}

// Time lock feature set up.
Expand All @@ -463,12 +463,12 @@ func (n *OpenBazaarNode) UnlockWallet(unlockWallet ManageWalletRequest) (bool, b
if !unlockWallet.SkipChangeMnemonicState {
err = n.Datastore.Config().UpdateMnemonic(decryptedMnemonic, false)
if err != nil {
return n.WalletLocked, isMnemonicEncrypted, err
return n.WalletLocked, isMnemonicEncrypted, err
}
}

n.WalletLocked = false
return n.WalletLocked, isMnemonicEncrypted, nil
return n.WalletLocked, isMnemonicEncrypted, nil
}

func (n *OpenBazaarNode) LockWallet(lockWallet ManageWalletRequest) (bool, bool, error) {
Expand Down

0 comments on commit 86d6caa

Please sign in to comment.