Skip to content

Commit

Permalink
fixed SIM103 ruff warning
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
  • Loading branch information
bigcat88 committed Jul 19, 2024
1 parent 8f1e680 commit 680138d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nc_py_api/files/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ def __str__(self):
)

def __eq__(self, other):
if self.file_id and self.file_id == other.file_id:
return True
return False
return bool(self.file_id and self.file_id == other.file_id)

@property
def has_extra(self) -> bool:
Expand Down

0 comments on commit 680138d

Please sign in to comment.