Download EPUB

:hammer: Remove duplication for a loan amount greater than $5000.00 · FagnerMartinsBrack/jack-the-moneylender@b426e86

GitHub 1 min read Original article

This article is too short to generate a summary.

Original file line numberDiff line numberDiff line change

@@ -24,12 +24,11 @@

2424

interestAmount = interestAmount.plus(calculateInterest(loanAmount, greaterThan2000));

2525

}

2626
27-

if (loanAmount.greaterThan(Money('$5000.00')) && loanAmount.lessThan(Money('$10001.00'))) {

27+

if (loanAmount.greaterThan(Money('$5000.00'))) {

2828

interestAmount = interestAmount.plus(calculateInterest(loanAmount, greaterThan5000));

2929

}

3030
3131

if (loanAmount.greaterThan(Money('$10000.00'))) {

32-

interestAmount = interestAmount.plus(calculateInterest(loanAmount, greaterThan5000));

3332

interestAmount = interestAmount.plus(calculateInterest(loanAmount, greaterThan10000));

3433

}

3534

Keep this one

Free to use, with no card: save new links within daily limits and read everything you save.

Every new account gets the paid plan for its first 14 days.