Skip to content

Commit

Permalink
Remove redundant "else"
Browse files Browse the repository at this point in the history
  • Loading branch information
gsalzer committed Jan 7, 2025
1 parent 40a3d4b commit b7666d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mythril/ethereum/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ def extract_version(file: typing.Optional[str]):

if version_line is None:
return None
else:
version_line = version_line.rstrip()

version_line = version_line.rstrip()
assert "pragma solidity" in version_line
if version_line[-1] == ";":
version_line = version_line[:-1]
Expand Down

0 comments on commit b7666d5

Please sign in to comment.