Skip to content

Commit

Permalink
Clean check version
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Nov 3, 2024
1 parent 42b5c08 commit 7e6fc7d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Material/Scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def parse_args() -> argparse.Namespace:
return parser.parse_args()


def check_version(version: str) -> bool:
def check_version(version: str) -> None:
"""
Check whether a given version is in expected format and actually newer than the
current version.
Expand All @@ -27,9 +27,6 @@ def check_version(version: str) -> bool:
with open(VERSION_FILE, "r") as f:
current_version = f.read().strip()

version = version.strip("v")
current_version = current_version.strip("v")

def parse_version(version: str):
return tuple(map(int, version.split(".")))

Expand Down

0 comments on commit 7e6fc7d

Please sign in to comment.