Skip to content

Commit

Permalink
Use #fileID/#filePath instead of #file (#164)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
carolinacass authored Oct 31, 2022
1 parent c0d9a14 commit d3345ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/NIOTransportServicesTests/NIOTSEndToEndTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d3345ff

Please sign in to comment.