Skip to content

Commit

Permalink
ruff compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
AbstractUmbra committed Jun 30, 2024
1 parent 40ac34e commit a902ad6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hondana/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ def _parse(self) -> None:
def has_expired(self) -> bool:
now = datetime.datetime.now(datetime.UTC)

if self.expires > now:
return False
return True
return not self.expires > now

async def refresh(self) -> Self:
if not self.refresh_token:
Expand Down

0 comments on commit a902ad6

Please sign in to comment.