We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8d32b4 commit c306255Copy full SHA for c306255
apps/judicial-system/backend/src/app/modules/defendant/civilClaimant.service.ts
@@ -65,9 +65,8 @@ export class CivilClaimantService {
65
this.logger.error(
66
`Unexpected number of rows (${numberOfAffectedRows}) affected when deleting civil claimant ${civilClaimantId} of case ${caseId}`,
67
)
68
- if (numberOfAffectedRows < 1) {
69
- throw new Error(`Could not delete civil claimant ${civilClaimantId}`)
70
- }
+ } else if (numberOfAffectedRows < 1) {
+ throw new Error(`Could not delete civil claimant ${civilClaimantId}`)
71
}
72
73
return true
0 commit comments