Skip to content

Commit ce2dbce

Browse files
committed
Manual lint
1 parent ed1ea20 commit ce2dbce

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Sources/ComposableArchitecturePattern/Server+API.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public protocol ServerAPI: Identifiable, Equatable {
3737

3838
/// The timeout length for the request. Default is `60`.
3939
var timeoutInterval: TimeInterval { get set }
40+
4041
/// Whether to block this API if the server is attempting to use a different environment.
4142
///
4243
/// For example, perhaps the server is using a specific environment but this API uses a different environment for some other purpose, such as a specific authentication endpoint. Setting this to `true` would mean that the API will throw an error if the environments don't match up.
@@ -128,9 +129,12 @@ public extension ServerAPI {
128129
urlComponents?.queryItems = queries
129130
}
130131

131-
var request = URLRequest(url: urlComponents?.url ?? baseURL,
132-
cachePolicy: .useProtocolCachePolicy,
133-
timeoutInterval: timeoutInterval ?? self.timeoutInterval)
132+
var request = URLRequest(
133+
url: urlComponents?.url ?? baseURL,
134+
cachePolicy: .useProtocolCachePolicy,
135+
timeoutInterval: timeoutInterval ?? self.timeoutInterval
136+
)
137+
134138
request.allHTTPHeaderFields = self.headers
135139
if let additionalHeaders {
136140
additionalHeaders.forEach {

0 commit comments

Comments
 (0)