Skip to content

Commit

Permalink
Simplify Change.raw_str() (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Nov 20, 2022
1 parent 025c433 commit 66d9f47
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions watchfiles/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ class Change(IntEnum):
"""A file or directory was deleted."""

def raw_str(self) -> str:
if self == Change.added:
return 'added'
elif self == Change.modified:
return 'modified'
else:
return 'deleted'
return self.name


FileChange = Tuple[Change, str]
Expand Down

0 comments on commit 66d9f47

Please sign in to comment.