mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-10-05 16:57:30 +03:00
add return for older xcode/swift versions
This commit is contained in:
parent
985562484a
commit
14e4455e2f
@ -58,12 +58,12 @@ public struct SpecFile {
|
||||
private static func includes(from array: [Any], basePath: Path) -> [Include] {
|
||||
array.flatMap { entry -> [Include] in
|
||||
if let string = entry as? String, let include = Include(any: string) {
|
||||
[include]
|
||||
return [include]
|
||||
} else if let dictionary = entry as? JSONDictionary, let path = dictionary["path"] as? String {
|
||||
Glob(pattern: (basePath + Path(path)).normalize().string)
|
||||
return Glob(pattern: (basePath + Path(path)).normalize().string)
|
||||
.compactMap { Include(path: Path($0), dictionary: dictionary) }
|
||||
} else {
|
||||
[]
|
||||
return []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user