Skip to content

Commit e21dafd

Browse files
committed
Manual lint
1 parent 205ef7c commit e21dafd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/ComposableArchitecturePattern/Server.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public extension Server {
303303

304304
func sendRequest<T: Codable>(_ request: URLRequest, requestUID: UUID, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy = .iso8601, keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .useDefaultKeys) async throws -> T {
305305
if self.logActivity == .all {
306-
logger.info("\(Date()) - (\(requestUID)) Request to \(String(describing: request.url?.description)) [Start]")
306+
self.logger.info("\(Date()) - (\(requestUID)) Request to \(String(describing: request.url?.description)) [Start]")
307307
}
308308

309309
let (data, response) = try await URLSession.shared.data(for: request)

Sources/ComposableArchitecturePattern/ServerAPIError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public enum ServerAPIError: Error {
1414
case emptyData(description: String? = nil)
1515
/// The wrong data returned in response.
1616
case incorrectReponseData(description: String? = nil)
17-
case local(description: String? = nil, error: Error?)
17+
case local(description: String? = nil, error: Error? = nil)
1818
/// An error occurred with the network.
1919
case network(description: String? = nil)
2020
/// Functionality to complete the API request is incomplete.

0 commit comments

Comments
 (0)