Change a check to be like other times I made that check in the file.

This commit is contained in:
Daniel Krol 2022-07-06 15:22:45 -04:00
parent 2b55d0f678
commit 9aa2082a7c

View file

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