Skip to content

Commit

Permalink
simplify if's
Browse files Browse the repository at this point in the history
  • Loading branch information
yoggys committed Aug 19, 2024
1 parent 12acace commit effd9c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/iterators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ async def _retrieve_entitlements_before_strategy(
sku_ids=self.sku_ids,
exclude_ended=self.exclude_ended,
)
if len(data):
if data:
if self.limit is not None:
self.limit -= retrieve
self.before = Object(id=int(data[-1]["id"]))
Expand All @@ -1074,7 +1074,7 @@ async def _retrieve_entitlements_after_strategy(
sku_ids=self.sku_ids,
exclude_ended=self.exclude_ended,
)
if len(data):
if data:
if self.limit is not None:
self.limit -= retrieve
self.after = Object(id=int(data[-1]["id"]))
Expand Down

0 comments on commit effd9c5

Please sign in to comment.