Skip to content

Commit f508c59

Browse files
committed
Fix the style of trailing closures
Put parentheses around the functional trailing closures
1 parent b0b491c commit f508c59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Xcodeproj/generate().swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public func generate(
9898
if try repositoryProvider.checkoutExists(at: srcroot) {
9999
// Get the ignored files and exclude them
100100
let repository = try repositoryProvider.openCheckout(at: srcroot)
101-
extraFiles = try extraFiles.filter { try !repository.isIgnored($0) }
101+
extraFiles = try extraFiles.filter({ try !repository.isIgnored($0) })
102102
}
103103

104104
/// Generate the contents of project.xcodeproj (inside the .xcodeproj).
@@ -250,11 +250,11 @@ func generateSchemes(
250250
func findNonSourceFiles(path: AbsolutePath, recursively: Bool = false) throws -> [AbsolutePath] {
251251
let filesFromPath = try walk(path, recursively: recursively)
252252

253-
return filesFromPath.filter {
253+
return filesFromPath.filter({
254254
if !isFile($0) { return false }
255255
if let `extension` = $0.extension, SupportedLanguageExtension.validExtensions.contains(`extension`) {
256256
return false
257257
}
258258
return true
259-
}
259+
})
260260
}

0 commit comments

Comments
 (0)