silence #file to #filePath warning (#91)

This commit is contained in:
Johannes Weiss 2020-06-08 17:50:28 +01:00 committed by GitHub
parent 7e330732f2
commit 2ac8fde712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ import Foundation
import Network
func assertNoThrowWithValue<T>(_ body: @autoclosure () throws -> T, defaultValue: T? = nil, message: String? = nil, file: StaticString = #file, line: UInt = #line) throws -> T {
func assertNoThrowWithValue<T>(_ body: @autoclosure () throws -> T, defaultValue: T? = nil, message: String? = nil,
file: StaticString = (#file), line: UInt = #line) throws -> T {
do {
return try body()
} catch {