From 7f3299fd741c5164f145582e29e715ae4d7bbf1c Mon Sep 17 00:00:00 2001 From: Allie Crevier Date: Thu, 20 Jan 2022 10:01:23 -0800 Subject: [PATCH] make return statement more concise --- securedrop_client/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securedrop_client/db.py b/securedrop_client/db.py index 5f5510e08..f0017f3d1 100644 --- a/securedrop_client/db.py +++ b/securedrop_client/db.py @@ -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: