Removed an unnecessary check in code which always evaluates to true (backport #33710) (#33763)

fix: removed an unnecessary check which always evaluates to true

(cherry picked from commit 49aed7ff69)

Co-authored-by: OpenRefactory, Inc <56681071+openrefactory@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2023-01-21 12:02:50 +05:30
committed by GitHub
parent 779691da55
commit bfc33fb2f5

View File

@@ -378,7 +378,6 @@ class Deferred_Revenue_and_Expense_Report(object):
ret += [{}] ret += [{}]
# add total row # add total row
if ret is not []:
if self.filters.type == "Revenue": if self.filters.type == "Revenue":
total_row = frappe._dict({"name": "Total Deferred Income"}) total_row = frappe._dict({"name": "Total Deferred Income"})
elif self.filters.type == "Expense": elif self.filters.type == "Expense":