Skip to content

Commit 0d5588c

Browse files
authored
Return Never from requireFail (#1194)
1 parent 28970fa commit 0d5588c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Nimble/DSL+Require.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public func unwrapa<T>(fileID: String = #fileID, file: FileString = #filePath, l
294294
///
295295
/// - Parameter message: A custom message to use in place of the default one.
296296
/// - Parameter customError: A custom error to throw in place of a ``RequireError``.
297-
public func requireFail(_ message: String? = nil, customError: Error? = nil, fileID: String = #fileID, filePath: FileString = #filePath, line: UInt = #line, column: UInt = #column) throws {
297+
public func requireFail(_ message: String? = nil, customError: Error? = nil, fileID: String = #fileID, filePath: FileString = #filePath, line: UInt = #line, column: UInt = #column) throws -> Never {
298298
let location = SourceLocation(fileID: fileID, filePath: filePath, line: line, column: column)
299299
let handler = NimbleEnvironment.activeInstance.assertionHandler
300300

0 commit comments

Comments
 (0)