[chore]: remove redundant code

This commit was merged in pull request #16.
This commit is contained in:
VivianDee
2025-04-25 15:34:46 +01:00
parent 851422c335
commit cf0502459b
+1 -3
View File
@@ -31,9 +31,7 @@ class LoanRepaymentSchedule(db.Model):
"""
Add repayment schedules for a given loan.
"""
if not loan.initial_loan_amount or not loan.installment_amount:
raise ValueError("Loan must have amount and installment_amount set.")
now = datetime.now(timezone.utc)
schedules = []
interest_fee = charges["interest"]