Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rexruan committed Feb 19, 2024
1 parent 84f1782 commit ea07a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swegram_main/data/texts.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def filesize(self):

@property
def has_label(self):
return True if self.labels else False
return bool(self.labels)

@property
def metadata(self):
Expand Down

0 comments on commit ea07a1b

Please sign in to comment.