Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 762f5e5

Browse files
[AHCTransport] Consistent style for initializing local variables (#10)
[AHCTransport] Consistent style for initializing local variables ### Motivation Move to a consistent style when initializing local variables, always use `let foo = Foo(...)` vs `let foo: Foo = .init(...)`. ### Modifications Updated all occurrences of the latter to use the former. ### Result Consistent local variable initialization. ### Test Plan All tests passed. Reviewed by: gjcairo, simonjbeaumont Builds: ✔︎ pull request validation (5.8) - Build finished. ✔︎ pull request validation (5.9) - Build finished. ✔︎ pull request validation (nightly) - Build finished. ✔︎ pull request validation (soundness) - Build finished. #10
1 parent 875fecf commit 762f5e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Test_AsyncHTTPClientTransport: XCTestCase {
6363
}
6464

6565
func testConvertResponse() async throws {
66-
let httpResponse:HTTPClientResponse=.init(
66+
let httpResponse=HTTPClientResponse(
6767
status: .ok,
6868
headers: [
6969
"content-type": "application/json"
@@ -83,7 +83,7 @@ class Test_AsyncHTTPClientTransport: XCTestCase {
8383

8484
func testSend() async throws {
8585
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
86-
let httpClient:HTTPClient=.init(
86+
let httpClient=HTTPClient(
8787
eventLoopGroupProvider: .shared(eventLoopGroup),
8888
configuration: .init()
8989
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /