Skip to content

Commit

Permalink
chore: decompress if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
onerandomusername committed Nov 21, 2021
1 parent d8017a1 commit c9b33a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modmail/utils/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,11 @@ def update_states(self) -> None:
"""
# update the footer
page_indicator = f"Page {self.index+1}/{len(self._pages)}"
footer_text = (
f"{self.footer_text} ({page_indicator})" if self.footer_text is not None else page_indicator
)
if self.footer_text:
footer_text = f"{self.footer_text} ({page_indicator})"
else:
footer_text = page_indicator

if self.embed is None:
self.content = (self.title or "") + "\n"
self.content += self._pages[self.index]
Expand Down

0 comments on commit c9b33a3

Please sign in to comment.