Change a check to be like other times I made that check in the file.
This commit is contained in:
parent
2b55d0f678
commit
9aa2082a7c
1 changed files with 3 additions and 3 deletions
|
@ -416,7 +416,7 @@ func (s *Store) ChangePasswordWithWallet(
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
if numRows != 1 {
|
||||
if numRows == 0 {
|
||||
// Very unexpected error!
|
||||
err = fmt.Errorf("Password failed to update")
|
||||
return
|
||||
|
@ -434,7 +434,7 @@ func (s *Store) ChangePasswordWithWallet(
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
if numRows != 1 {
|
||||
if numRows == 0 {
|
||||
err = ErrWrongSequence
|
||||
return
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ func (s *Store) ChangePasswordNoWallet(
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
if numRows != 1 {
|
||||
if numRows == 0 {
|
||||
// Very unexpected error!
|
||||
err = fmt.Errorf("Password failed to update")
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue