Skip to content

Commit 6c5c0f0

Browse files
authored
chore: Eliminate compile warnings in ClientRuntime and tests (#737)
1 parent 4f95ff8 commit 6c5c0f0

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

Sources/ClientRuntime/Endpoints/ServiceEndpointMetadata.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//
55
// SPDX-License-Identifier: Apache-2.0
66
//
7-
import ClientRuntime
87

98
public struct ServiceEndpointMetadata {
109
public let defaultProtocol = ProtocolType.https.rawValue

Sources/ClientRuntime/Endpoints/SmithyEndpoint.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//
55
// SPDX-License-Identifier: Apache-2.0
66
//
7-
import ClientRuntime
87

98
/**
109
A structure used by the service client to determine the endpoint.

Sources/ClientRuntime/Plugins/DefaultClientPlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class DefaultClientPlugin: Plugin {
1515
}
1616

1717
if var config = clientConfiguration as? DefaultHttpClientConfiguration {
18-
var httpClientConfiguration =
18+
let httpClientConfiguration =
1919
DefaultSDKRuntimeConfiguration<DefaultRetryStrategy, DefaultRetryErrorInfoProvider>
2020
.defaultHttpClientConfiguration
2121
config.httpClientConfiguration = httpClientConfiguration

Tests/ClientRuntimeTests/NetworkingTests/Http/MiddlewareTests/FlexibleChecksumsMiddlewareTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ class FlexibleChecksumsMiddlewareTests: XCTestCase {
176176

177177
func testAlgorithmSelectionCase2() async throws -> () {
178178
let colA = ["sha256", "crc32"]
179-
let colB = ["crc32", "sha256"]
180179
let validationMode = true
181180
var colBHeaders = Headers()
182181
// Add only sha256 header in response
@@ -209,7 +208,6 @@ class FlexibleChecksumsMiddlewareTests: XCTestCase {
209208

210209
func testAlgorithmSelectionCase4() async throws -> () {
211210
let colA = ["crc32", "crc32c"]
212-
let colB = ["crc32c", "crc32"]
213211
let validationMode = false
214212
var colBHeaders = Headers()
215213
// crc64 is not modeled in the service so no validation should be perforemd, but we shouldnt error

0 commit comments

Comments
 (0)