File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Tests/OpenAPIRuntimeTests Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ extension Data {
28
28
extension Request {
29
29
/// Allows modifying the parsed query parameters of the request.
30
30
mutating func mutateQuery( _ closure: ( inout URLComponents ) throws -> Void ) rethrows {
31
- var urlComponents : URLComponents = . init ( )
31
+ var urlComponents = URLComponents ( )
32
32
if let query {
33
33
urlComponents. percentEncodedQuery = query
34
34
}
Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ extension Request {
498
498
/// Allows modifying the parsed query parameters of the request.
499
499
@available ( * , deprecated)
500
500
mutating func mutatingQuery( _ closure: ( inout URLComponents ) throws -> Void ) rethrows {
501
- var urlComponents : URLComponents = . init ( )
501
+ var urlComponents = URLComponents ( )
502
502
if let query {
503
503
urlComponents. percentEncodedQuery = query
504
504
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ final class Test_CodableExtensions: Test_Runtime {
21
21
}
22
22
23
23
var testEncoder : JSONEncoder {
24
- let encoder : JSONEncoder = . init ( )
24
+ let encoder = JSONEncoder ( )
25
25
encoder. outputFormatting = [ . prettyPrinted, . sortedKeys]
26
26
return encoder
27
27
}
@@ -187,7 +187,7 @@ final class Test_CodableExtensions: Test_Runtime {
187
187
188
188
struct Foo : Encodable {
189
189
var bar : String
190
- var additionalProperties : OpenAPIObjectContainer = . init ( )
190
+ var additionalProperties = OpenAPIObjectContainer ( )
191
191
192
192
enum CodingKeys : String , CodingKey {
193
193
case bar
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Test_Runtime: XCTestCase {
37
37
}
38
38
39
39
var testComponents : URLComponents {
40
- var components : URLComponents = . init ( )
40
+ var components = URLComponents ( )
41
41
components. path = " /api "
42
42
return components
43
43
}
You can’t perform that action at this time.
0 commit comments