Skip to content

Commit 1fbd5f7

Browse files
authored
chore: remove trailing whitespaces in all Swift files (#511)
1 parent 436fd1b commit 1fbd5f7

File tree

113 files changed

+758
-759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+758
-759
lines changed

.swiftlint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ analyzer_rules:
99
- unused_declaration
1010

1111
disabled_rules:
12-
- trailing_whitespace
1312
- todo
1413
- identifier_name
1514
- compiler_protocol_init

Sources/ClientRuntime/Config/DefaultIdempotencyTokenGenerator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import Foundation
77

88
public struct DefaultIdempotencyTokenGenerator: IdempotencyTokenGenerator {
9-
9+
1010
public init() {}
11-
11+
1212
public func generateToken() -> String {
1313
return UUID().uuidString
1414
}

Sources/ClientRuntime/Config/DefaultSDKRuntimeConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public struct DefaultSDKRuntimeConfiguration: SDKRuntimeConfiguration {
2121
/// Requests made with the same partition ID will be grouped together for retry throttling purposes.
2222
/// If no partition ID is provided, requests will be partitioned based on the hostname.
2323
public var partitionID: String?
24-
24+
2525
public init(
2626
_ clientName: String,
2727
clientLogMode: ClientLogMode = .request,

Sources/ClientRuntime/Logging/ClientLogMode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// SPDX-License-Identifier: Apache-2.0
66
//
7-
7+
88
public enum ClientLogMode {
99
case request
1010
case requestWithBody

Sources/ClientRuntime/Logging/LogAgent.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
public protocol LogAgent {
77
/// name of the struct or class where the logger was instantiated from
88
var name: String {get}
9-
9+
1010
/// Get or set the configured log level.
1111
var level: LogAgentLevel {get set}
12-
12+
1313
/// This method is called when a `LogAgent` must emit a log message.
1414
///
1515
/// - parameters:
@@ -49,7 +49,7 @@ public extension LogAgent {
4949
String($0)
5050
} ?? "n/a"
5151
}
52-
52+
5353
/// Log a message passing with the `.info` log level.
5454
func info(_ message: String, file: String = #file, function: String = #function, line: UInt = #line) {
5555
self.log(level: .info,
@@ -60,7 +60,7 @@ public extension LogAgent {
6060
function: function,
6161
line: line)
6262
}
63-
63+
6464
/// Log a message passing with the `LogLevel.warn` log level.
6565
func warn(_ message: String, file: String = #file, function: String = #function, line: UInt = #line) {
6666
self.log(level: .warn,
@@ -71,7 +71,7 @@ public extension LogAgent {
7171
function: function,
7272
line: line)
7373
}
74-
74+
7575
/// Log a message passing with the `.debug` log level.
7676
func debug(_ message: String, file: String = #file, function: String = #function, line: UInt = #line) {
7777
self.log(level: .debug,
@@ -82,7 +82,7 @@ public extension LogAgent {
8282
function: function,
8383
line: line)
8484
}
85-
85+
8686
/// Log a message passing with the `.error` log level.
8787
func error(_ message: String, file: String = #file, function: String = #function, line: UInt = #line) {
8888
self.log(level: .error,
@@ -93,7 +93,7 @@ public extension LogAgent {
9393
function: function,
9494
line: line)
9595
}
96-
96+
9797
/// Log a message passing with the `.trace` log level.
9898
func trace(_ message: String, file: String = #file, function: String = #function, line: UInt = #line) {
9999
self.log(level: .trace,
@@ -104,7 +104,7 @@ public extension LogAgent {
104104
function: function,
105105
line: line)
106106
}
107-
107+
108108
/// Log a message passing with the `.fatal` log level.
109109
func fatal(_ message: String, file: String = #file, function: String = #function, line: UInt = #line) {
110110
self.log(level: .fatal,

Sources/ClientRuntime/Logging/SDKLogHandlerFactory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// SPDX-License-Identifier: Apache-2.0
66
//
7-
7+
88
import Logging
99

1010
public protocol SDKLogHandlerFactory {

Sources/ClientRuntime/Logging/SDKLogLevel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// SPDX-License-Identifier: Apache-2.0
66
//
7-
7+
88
import Logging
99

1010
public enum SDKLogLevel: String, Codable, CaseIterable {

Sources/ClientRuntime/Logging/SDKLoggingSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// SPDX-License-Identifier: Apache-2.0
66
//
7-
7+
88
import Logging
99

1010
public class SDKLoggingSystem {

Sources/ClientRuntime/Logging/SwiftLog+LogAgent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public struct SwiftLogger: LogAgent {
2828
public var name: String {
2929
return label
3030
}
31-
31+
3232
public func log(level: LogAgentLevel,
3333
message: String,
3434
metadata: [String: String]?,

Sources/ClientRuntime/Middleware/AnyHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/// Type erased Handler
55
public struct AnyHandler<MInput, MOutput, Context: MiddlewareContext>: Handler {
66
private let _handle: (Context, MInput) async throws -> MOutput
7-
7+
88
public init<H: Handler> (_ realHandler: H)
99
where H.Input == MInput, H.Output == MOutput, H.Context == Context {
1010
if let alreadyErased = realHandler as? AnyHandler<MInput, MOutput, Context> {
@@ -13,7 +13,7 @@ public struct AnyHandler<MInput, MOutput, Context: MiddlewareContext>: Handler {
1313
}
1414
self._handle = realHandler.handle
1515
}
16-
16+
1717
public func handle(context: Context, input: MInput) async throws -> MOutput {
1818
return try await _handle(context, input)
1919
}

0 commit comments

Comments
 (0)