Skip to content

Commit

Permalink
Merge pull request Quick#677 from Quick/trailing-closures
Browse files Browse the repository at this point in the history
Use trailing closures where possible
  • Loading branch information
modocache authored Jan 12, 2017
2 parents f9624ae + 462d12e commit 53a8676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Quick/DSL/DSL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public func afterSuite(_ closure: @escaping AfterSuiteClosure) {
and `afterEach` closures, as well as any number of examples (defined using `it`).
*/
public func sharedExamples(_ name: String, closure: @escaping () -> Void) {
World.sharedWorld.sharedExamples(name, closure: { (_) in closure() })
World.sharedWorld.sharedExamples(name) { _ in closure() }
}

/**
Expand Down
4 changes: 2 additions & 2 deletions Tests/QuickTests/QuickTestHelpers/XCTestCaseProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public protocol XCTestCaseProvider: XCTestCaseProviderStatic, XCTestCaseNameProv

public extension XCTestCaseProvider where Self: XCTestCaseProviderStatic {
var allTestNames: [String] {
return type(of: self).allTests.map({ name, _ in
return type(of: self).allTests.map { name, _ in
return name
})
}
}
}

Expand Down

0 comments on commit 53a8676

Please sign in to comment.