Skip to content

Commit 6c131a2

Browse files
committed
Update comment regarding #available check
1 parent 162016a commit 6c131a2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Sources/Testing/ABI/EntryPoints/EntryPoint.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,9 @@ public func configurationForEntryPoint(from args: __CommandLineArguments_v0) thr
661661
}
662662

663663
guard !regexes.isEmpty else {
664-
// Return early with just the tag filter, even though the `reduce` logic
665-
// below can handle this case, in order to avoid the `#available` guard.
664+
// Return early with just the tag filter, otherwise we try to match
665+
// against an empty array of regular expressions which is _not_
666+
// equivalent to `.unfiltered`.
666667
return [tagFilter]
667668
}
668669

0 commit comments

Comments
 (0)