Skip to content

Commit 832b6ee

Browse files
committedSep 22, 2023
remove unnecessary list comprehension to fix CI
·
3.1.443.1.37
1 parent e98f57b commit 832b6ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _check_ref_name_valid(ref_path: PathLike) -> None:
200200
raise ValueError(f"Invalid reference '{ref_path}': references cannot end with a forward slash (/)")
201201
elif previous == "@" and one_before_previous is None:
202202
raise ValueError(f"Invalid reference '{ref_path}': references cannot be '@'")
203-
elif any([component.endswith(".lock") for component in str(ref_path).split("/")]):
203+
elif any(component.endswith(".lock") for component in str(ref_path).split("/")):
204204
raise ValueError(
205205
f"Invalid reference '{ref_path}': references cannot have slash-separated components that end with"
206206
f" '.lock'"

0 commit comments

Comments
 (0)
Please sign in to comment.