Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 5f2f93d

Browse files
committed
Linting clean up
1 parent 2ea4947 commit 5f2f93d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let package = Package(
1010
.package(url: "https://github.com/SlackKit/SKCore", .upToNextMinor(from: "4.1.0"))
1111
],
1212
targets: [
13-
.target(name: "SKWebAPI",
13+
.target(name: "SKWebAPI",
1414
dependencies: ["SKCore"],
1515
path: "Sources")
1616
]

Sources/NetworkInterface.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public struct NetworkInterface {
169169
if parameters.count > 0 {
170170
components?.queryItems = filterNilParameters(parameters).map { URLQueryItem(name: $0.0, value: "\($0.1)") }
171171
}
172-
172+
173173
// As discussed http://www.openradar.me/24076063 and https://stackoverflow.com/a/37314144/407523, Apple considers
174174
// a + and ? as valid characters in a URL query string, but Slack has recently started enforcing that they be
175175
// encoded when included in a query string. As a result, we need to manually apply the encoding after Apple's
@@ -178,10 +178,10 @@ public struct NetworkInterface {
178178
encodedQuery = encodedQuery?.replacingOccurrences(of: "?", with: "%3F")
179179
encodedQuery = encodedQuery?.replacingOccurrences(of: "+", with: "%2B")
180180
components?.percentEncodedQuery = encodedQuery
181-
181+
182182
return components?.url
183183
}
184-
184+
185185
private func requestBodyData(data: Data, boundaryConstant: String, filename: String, filetype: String) -> Data? {
186186
let boundaryStart = "--\(boundaryConstant)\r\n"
187187
let boundaryEnd = "--\(boundaryConstant)--\r\n"

Sources/WebAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ extension WebAPI {
12441244
failure: FailureClosure?
12451245
) {
12461246
let parameters: [String: Any] = ["token": token, "channel": channel, "user": user]
1247-
networkInterface.request(endpoint, parameters: parameters, successClosure: {(response) in
1247+
networkInterface.request(endpoint, parameters: parameters, successClosure: { _ in
12481248
success?(true)
12491249
}) {(error) in
12501250
failure?(error)

0 commit comments

Comments
 (0)