Skip to content

Commit 442abcf

Browse files
author
Jan Sebastian Rothe
committed
simplified check
1 parent 9458881 commit 442abcf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/fagfunksjoner/paths/versions.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,8 @@ def latest_version_path(filepath: str) -> str:
250250
raise ValueError(
251251
f"Expected latest_files to contain strings, got {latest_files}"
252252
)
253-
elif isinstance(latest_files, str):
254-
latest_file = latest_files
255253
else:
256-
raise ValueError(
257-
f"Expected a list of strings or a single string, got {type(latest_files)}: {latest_files}"
258-
)
254+
latest_file = latest_files
259255

260256
# Extract the version number from the latest file.
261257
latest_version_number = get_version_number(latest_file)

0 commit comments

Comments
 (0)