Skip to content

Commit 45d8a7a

Browse files
Introduced dead code
1 parent a4bf8cd commit 45d8a7a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/main/java/com/diffblue/corebanking/compliance/rules/ComplianceRuleBalanceAboveOrEqualToZero.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ public ComplianceRuleBalanceAboveOrEqualToZero() {
1717
* @param account The account to verify compliance.
1818
*/
1919
public void ValidateAccountCompliance(Account account) {
20+
21+
// Make sure the account does not belong to any list.
2022
this.currentFailedAccounts.remove(account);
2123
this.currentPassedAccounts.remove(account);
22-
if (account.getCurrentBalance() >= 0) {
23-
this.currentPassedAccounts.add(account);
24-
} else {
25-
this.currentFailedAccounts.add(account);
24+
25+
// Check if this account passes or fails this rule.
26+
if(false) {
27+
if (account.getCurrentBalance() >= 0) {
28+
this.currentPassedAccounts.add(account);
29+
} else {
30+
this.currentFailedAccounts.add(account);
31+
}
2632
}
2733
}
2834
}

0 commit comments

Comments
 (0)