Skip to content

Commit

Permalink
Merge pull request #54 from hyperoslo/fix/query_builder
Browse files Browse the repository at this point in the history
Fix query builder
  • Loading branch information
vadymmarkov authored Nov 22, 2016
2 parents f2956b8 + e023dd4 commit 11e6f8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 3 additions & 5 deletions Sources/Helpers/QueryBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,14 @@ public struct QueryBuilder {
var index = string.startIndex

while index != string.endIndex {
guard let endIndex = string.index(index, offsetBy: 50, limitedBy: string.endIndex) else {
break
}

let endIndex = string.index(index, offsetBy: 50, limitedBy: string.endIndex) ?? string.endIndex
let range = Range(index..<endIndex)
let substring = string.substring(with: range)

index = endIndex
escapedString += substring.addingPercentEncoding(
withAllowedCharacters: allowedCharacters as CharacterSet) ?? substring

index = endIndex
}
}

Expand Down
1 change: 0 additions & 1 deletion Sources/Networking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public final class Networking: NSObject {
return ride
}


let etagPromise = ride.then { [weak self] result -> Wave in
self?.saveEtag(request: request, response: result.response)
return result
Expand Down

0 comments on commit 11e6f8c

Please sign in to comment.