Skip to content

Commit c6df534

Browse files
authored
fix: swiftlint issues (#512)
1 parent 1fbd5f7 commit c6df534

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/ClientRuntime/Networking/Http/HttpBody.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public extension HttpBody {
3939
}
4040
}
4141

42-
4342
extension HttpBody: CustomDebugStringConvertible {
4443
public var debugDescription: String {
4544
var bodyAsString: String?

Sources/ClientRuntime/Networking/Streaming/DataStreamReader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class DataStreamReader: StreamReader {
4545
let count = Int(maxBytes ?? availableForRead)
4646
var data = Data(count: count)
4747
withLockingClosure {
48-
var bytesRead: Int? = nil
48+
var bytesRead: Int?
4949
data.withUnsafeMutableBytes { buffer in
5050
let typedBuffer = buffer.bindMemory(to: UInt8.self)
5151
bytesRead = byteBuffer.read(buffer: typedBuffer)

Sources/ClientRuntime/Retries/SDKRetryer.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ extension AwsCommonRuntimeKit.RetryStrategy {
101101
maxRetries: options.maxRetries,
102102
backOffScaleFactor: options.backOffScaleFactor,
103103
jitterMode: options.jitterMode.toCRTType(),
104-
generateRandom: nil // we should pass in the options.generateRandom but currently it fails since the underlying closure is a c closure
104+
generateRandom: nil // we should pass in the options.generateRandom but currently
105+
// it fails since the underlying closure is a c closure
105106
)
106107
}
107108
}

0 commit comments

Comments
 (0)