From 7204dbdb3aef7cfbdf1a22268f9778dfded02dda Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Tue, 21 Feb 2017 22:11:54 +0100 Subject: [PATCH] @discardableResult declared on a function returning Void is unnecessary. --- Tests/SwiftShellTests/TestHelpers.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/SwiftShellTests/TestHelpers.swift b/Tests/SwiftShellTests/TestHelpers.swift index b55166d..a68b554 100644 --- a/Tests/SwiftShellTests/TestHelpers.swift +++ b/Tests/SwiftShellTests/TestHelpers.swift @@ -29,7 +29,7 @@ func AssertDoesNotThrow(_ closure: () throws -> ()) { /// } /// /// If the closure does not throw the expected error, the test fails. -@discardableResult public func AssertThrows(_ expectedError: E, +public func AssertThrows(_ expectedError: E, file: StaticString = #file, line: UInt = #line, _ closure: () throws -> ()) where E: Error, E: Equatable {