refactor: Unnecessary/illogical check

because cint(False) gives 0
This commit is contained in:
Gavin D'souza 2021-06-02 01:12:19 +05:30
parent 888aa8ad84
commit f92c5d9898

View file

@ -74,7 +74,7 @@ class DatabaseQuery(object):
self.docstatus = docstatus or []
self.group_by = group_by
self.order_by = order_by
self.limit_start = 0 if (limit_start is False) else cint(limit_start)
self.limit_start = cint(limit_start)
self.limit_page_length = cint(limit_page_length) if limit_page_length else None
self.with_childnames = with_childnames
self.debug = debug