Skip to content

Commit 832b6ee

Browse files
committed
remove unnecessary list comprehension to fix CI
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy