mirror of
https://github.com/apple/swift-http-structured-headers
synced 2026-11-25 04:47:48 +00:00
Use #fileID/#filePath instead of #file (#28)
Motivation: #fileID introduced in Swift 5.3, so no longer need to use #file anywhere Modifications: Changed #file to #filePath or #fileID depending on the situation
This commit is contained in:
1 parent
521f0418e6
commit
0a03f062c9
1 file changed
+1
-1
@@ -15,7 +15,7 @@ import Foundation
|
||||
|
||||
enum FixturesLoader {
|
||||
private static var fixturesDirectory: URL {
|
||||
let myURL = URL(fileURLWithPath: #file, isDirectory: false)
|
||||
let myURL = URL(fileURLWithPath: #filePath, isDirectory: false)
|
||||
return URL(string: "../TestFixtures/", relativeTo: myURL)!.absoluteURL
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user