Use #fileID/#filePath instead of #file (#164)

Motivation:

#fileID introduced in Swift 5.3, so no longer need to use #file anywhere

Modifications:

Changed #file to #filePath or #fileID depending on situation
This commit is contained in:
carolinacass 2022-10-31 11:59:12 +00:00 committed by GitHub
parent c0d9a144cf
commit d3345ffc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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