@discardableResult declared on a function returning Void is unnecessary.

This commit is contained in:
Kare Morstol
2017-02-21 22:11:54 +01:00
parent 62780a880a
commit 7204dbdb3a
+1 -1
View File
@@ -29,7 +29,7 @@ func AssertDoesNotThrow(_ closure: () throws -> ()) {
/// }
///
/// If the closure does not throw the expected error, the test fails.
@discardableResult public func AssertThrows<E>(_ expectedError: E,
public func AssertThrows<E>(_ expectedError: E,
file: StaticString = #file, line: UInt = #line, _ closure: () throws -> ())
where E: Error, E: Equatable {