Skip to content

Commit 2c361ab

Browse files
committed
Remove stray argument
1 parent d4737e8 commit 2c361ab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/Testing/Expectations/ExpectationChecking+Macro.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,6 @@ public func __checkClosureCall<EExpected, EActual>(
10501050
public func __checkClosureCall<R>(
10511051
performing body: () throws(any Error) -> R,
10521052
throws errorMatcher: (any Error) throws(any Error) -> Bool,
1053-
mismatchExplanation: ((any Error) -> String)? = nil,
10541053
expression: __Expression,
10551054
comments: @autoclosure () -> [Comment],
10561055
isRequired: Bool,
@@ -1059,7 +1058,7 @@ public func __checkClosureCall<R>(
10591058
_check(
10601059
performing: body,
10611060
throws: errorMatcher,
1062-
mismatchExplanation: mismatchExplanation,
1061+
mismatchExplanation: nil,
10631062
expression: expression,
10641063
comments: comments(),
10651064
isRequired: isRequired,
@@ -1076,7 +1075,6 @@ public func __checkClosureCall<R>(
10761075
public func __checkClosureCall<R>(
10771076
performing body: () async throws(any Error) -> sending R,
10781077
throws errorMatcher: (any Error) async throws(any Error) -> Bool,
1079-
mismatchExplanation: ((any Error) -> String)? = nil,
10801078
expression: __Expression,
10811079
comments: @autoclosure () -> [Comment],
10821080
isRequired: Bool,
@@ -1086,7 +1084,7 @@ public func __checkClosureCall<R>(
10861084
await _check(
10871085
performing: body,
10881086
throws: errorMatcher,
1089-
mismatchExplanation: mismatchExplanation,
1087+
mismatchExplanation: nil,
10901088
expression: expression,
10911089
comments: comments(),
10921090
isRequired: isRequired,

0 commit comments

Comments
 (0)