Skip to content

Commit

Permalink
verificationhelper/reciprocate: return error if save fails
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Nov 23, 2024
1 parent f3afd84 commit 5faf1af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/verificationhelper/reciprocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (vh *VerificationHelper) HandleScannedQRData(ctx context.Context, data []by
}
vh.verificationDone(ctx, txn.TransactionID)
} else {
vh.store.SaveVerificationTransaction(ctx, txn)
return vh.store.SaveVerificationTransaction(ctx, txn)
}
return nil
}
Expand Down Expand Up @@ -258,7 +258,7 @@ func (vh *VerificationHelper) ConfirmQRCodeScanned(ctx context.Context, txnID id
}
vh.verificationDone(ctx, txn.TransactionID)
} else {
vh.store.SaveVerificationTransaction(ctx, txn)
return vh.store.SaveVerificationTransaction(ctx, txn)
}
return nil
}
Expand Down

0 comments on commit 5faf1af

Please sign in to comment.