Skip to content

Commit 8983037

Browse files
committed
refactor: linting
1 parent 27bdd72 commit 8983037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firebase_functions/private/path_pattern.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ def has_wildcards(self) -> bool:
159159

160160
@property
161161
def has_captures(self) -> bool:
162-
return any(segment.name == SegmentName.SINGLE_CAPTURE or
163-
segment.name == SegmentName.MULTI_CAPTURE
162+
return any(segment.name in (SegmentName.SINGLE_CAPTURE,
163+
SegmentName.MULTI_CAPTURE)
164164
for segment in self.segments)
165165

166166
def extract_matches(self, path: str) -> dict[str, str]:

0 commit comments

Comments
 (0)