Skip to content

Commit 9c59753

Browse files
Moved dead code
1 parent 45d8a7a commit 9c59753

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@ public ComplianceRuleBalanceAboveOrEqualToZero() {
1919
public void ValidateAccountCompliance(Account account) {
2020

2121
// Make sure the account does not belong to any list.
22-
this.currentFailedAccounts.remove(account);
23-
this.currentPassedAccounts.remove(account);
22+
currentFailedAccounts.remove(account);
23+
currentPassedAccounts.remove(account);
2424

2525
// 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-
}
26+
if (account.getCurrentBalance() >= 0) {
27+
currentPassedAccounts.add(account);
28+
} else if (false) {
29+
currentFailedAccounts.add(account);
3230
}
3331
}
3432
}

0 commit comments

Comments
 (0)