Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Remove NoneType check since it's already checked
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetacchini committed Dec 25, 2020
1 parent e8906b5 commit 4fabaee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pygicord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ async def start(self, ctx):
% self.pages.__class__.__name__
)

if self.pages is None:
raise RuntimeError("Can't paginate a NoneType object.")

if len(self.pages) == 0:
raise RuntimeError("Can't paginate an empty list.")

Expand Down

0 comments on commit 4fabaee

Please sign in to comment.