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:
parent
c0d9a144cf
commit
d3345ffc2a
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue