Skip to content

Commit

Permalink
factor: remove else after return
Browse files Browse the repository at this point in the history
  • Loading branch information
rezamahdi committed Feb 25, 2022
1 parent 6b1fc5c commit 5e60a48
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/pyzantium/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ def __eq__(self, other: object) -> bool:
# comparing hashes is enough
if isinstance(other, Block):
return self._hash == other._hash
else:
raise TypeError(
"Object of type {} is not a Block or subclass of it".format(
other.__class__
)
)
raise TypeError(
"Object of type {} is not a Block or subclass of it".format(other.__class__)
)


class BlockSerializer(ABC):
Expand Down

0 comments on commit 5e60a48

Please sign in to comment.