Skip to content

Commit 4a67161

Browse files
committed
Refactor for-loop to map
1 parent aa9c0cc commit 4a67161

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Sources/Xcodeproj/Module+PBXProj.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,8 @@ extension SwiftModule {
156156
return (headerPathKey, first)
157157
}
158158

159-
var headerPathValue = "(\n"
160-
for header in headerPaths {
161-
headerPathValue += "\"\(header)\","
162-
}
163-
headerPathValue += ")"
164-
159+
let headerPathValue = "( " + headerPaths.map({ "\"\($0)\"" }).joined(separator: ", ") + " )"
160+
165161
return (headerPathKey, headerPathValue)
166162
}
167163

0 commit comments

Comments
 (0)