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 {
2828extension Request {
2929 /// Allows modifying the parsed query parameters of the request.
3030 mutating func mutateQuery( _ closure: ( inout URLComponents ) throws -> Void ) rethrows {
31- var urlComponents : URLComponents = . init ( )
31+ var urlComponents = URLComponents ( )
3232 if let query {
3333 urlComponents. percentEncodedQuery = query
3434 }
Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ extension Request {
498498 /// Allows modifying the parsed query parameters of the request.
499499 @available ( * , deprecated)
500500 mutating func mutatingQuery( _ closure: ( inout URLComponents ) throws -> Void ) rethrows {
501- var urlComponents : URLComponents = . init ( )
501+ var urlComponents = URLComponents ( )
502502 if let query {
503503 urlComponents. percentEncodedQuery = query
504504 }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ final class Test_CodableExtensions: Test_Runtime {
2121 }
2222
2323 var testEncoder : JSONEncoder {
24- let encoder : JSONEncoder = . init ( )
24+ let encoder = JSONEncoder ( )
2525 encoder. outputFormatting = [ . prettyPrinted, . sortedKeys]
2626 return encoder
2727 }
@@ -187,7 +187,7 @@ final class Test_CodableExtensions: Test_Runtime {
187187
188188 struct Foo : Encodable {
189189 var bar : String
190- var additionalProperties : OpenAPIObjectContainer = . init ( )
190+ var additionalProperties = OpenAPIObjectContainer ( )
191191
192192 enum CodingKeys : String , CodingKey {
193193 case bar
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Test_Runtime: XCTestCase {
3737 }
3838
3939 var testComponents : URLComponents {
40- var components : URLComponents = . init ( )
40+ var components = URLComponents ( )
4141 components. path = " /api "
4242 return components
4343 }
You can’t perform that action at this time.
0 commit comments