Skip to content

Commit

Permalink
make return statement more concise
Browse files Browse the repository at this point in the history
Signed-off-by: Allie Crevier <allie@freedom.press>
  • Loading branch information
Allie Crevier committed Jan 20, 2022
1 parent b39b877 commit 273e2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop_client/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def __repr__(self) -> str:

@property
def deleted(self) -> bool:
return True if self.username == "deleted" else False
return self.username == "deleted"

@property
def fullname(self) -> str:
Expand Down

0 comments on commit 273e2c6

Please sign in to comment.