Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hainayanda committed Oct 28, 2020
1 parent f29e008 commit 5d72ba4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions iONess/Classes/Common/URLCompatible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ extension String: URLCompatible {
var constructedURL: String = ""
for parameter in parameters {
guard let key: String = parameter.key.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed),
let value = parameter.value.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) else {
continue
let value = parameter.value.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) else {
continue
}
constructedURL = "\(constructedURL)\(key)=\(value)&"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public class ResumableDownloadRequest: BaseDropableURLRequest<URLResponse, Downl
try FileManager.default.moveItem(at: url, to: targetUrl)
return nil
} catch {
return error
return error
}
}

Expand Down
2 changes: 1 addition & 1 deletion iONess/Classes/Model/HTTPResultMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct HTTPResultMessage: HTTPMessage {
var headers: HTTPRequestMessage.Header = [:]
for member in httpResponse.allHeaderFields {
guard let key = member.key as? String,
let value = member.value as? String else { continue }
let value = member.value as? String else { continue }
headers[key] = value
}
self.headers = headers
Expand Down
6 changes: 3 additions & 3 deletions iONess/Classes/Thenable/DataRequestPromise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ open class DataRequestPromise<Response: URLResponse>: HTTPRequestPromise<Respons
request: urlRequest,
retryControl: retryControl,
urlValidator: urlValidator) { result in
dispatcher.async {
closure(result)
}
dispatcher.async {
closure(result)
}
}
}
}
6 changes: 3 additions & 3 deletions iONess/Classes/Thenable/DownloadRequestPromise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ open class DownloadRequestPromise: HTTPRequestPromise<URLResponse, DownloadResul
targetUrl: targetUrl,
retryControl: retryControl,
urlValidator: urlValidator) { result in
dispatcher.async {
closure(result)
}
dispatcher.async {
closure(result)
}
}
}
}
6 changes: 3 additions & 3 deletions iONess/Classes/Thenable/UploadRequestPromise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ open class UploadRequestPromise: HTTPRequestPromise<URLResponse, URLResult> {
fileUrl: fileURL,
retryControl: retryControl,
urlValidator: urlValidator) { result in
dispatcher.async {
closure(result)
}
dispatcher.async {
closure(result)
}
}
}
}

0 comments on commit 5d72ba4

Please sign in to comment.