Skip to content

Commit ca25eca

Browse files
committed
fix compilation error in ci enviroment
1 parent a40341f commit ca25eca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/XcodeGenKit/TargetSourceFilterable.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ extension TargetSourceFilterable {
4848
&& !excludePaths.contains(path)
4949
// If includes is empty, it's included. If it's not empty, the path either needs to match exactly, or it needs to be a direct parent of an included path.
5050
&& (includePaths.value.isEmpty || _isIncludedPathSorted(path, sortedPaths: includePaths))
51-
52-
func _isIncludedPathSorted(_ path: Path, sortedPaths: SortedArray<Path>) -> Bool {
53-
guard let idx = sortedPaths.firstIndex(where: { $0 >= path }) else { return false }
54-
let foundPath = sortedPaths.value[idx]
55-
return foundPath.description.hasPrefix(path.description)
56-
}
51+
}
52+
53+
private func _isIncludedPathSorted(_ path: Path, sortedPaths: SortedArray<Path>) -> Bool {
54+
guard let idx = sortedPaths.firstIndex(where: { $0 >= path }) else { return false }
55+
let foundPath = sortedPaths.value[idx]
56+
return foundPath.description.hasPrefix(path.description)
5757
}
5858

5959
func getSourceMatches(targetSource: TargetSource, patterns: [String]) -> Set<Path> {

0 commit comments

Comments
 (0)