Skip to content

Commit

Permalink
Style fixes, shorter timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Apr 7, 2016
1 parent dc20df8 commit 132908c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions MapboxDirections/MBDirections.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public class MBDirections: NSObject {
}

private func taskWithRouter(router: MBDirectionsRouter, completionHandler completion: (MBPoint, [MBPoint], MBPoint, [JSON], NSError?) -> Void, errorHandler: (NSError?) -> Void) -> Request? {
let request = Alamofire.request(router).responseJSON { response in
return Alamofire.request(router).responseJSON { response in

let error = response.result.error
let json = response.result.value
Expand Down Expand Up @@ -183,7 +183,6 @@ public class MBDirections: NSObject {

completion(source, Array(waypoints), destination, routes, error)
}
return request
}

public func cancel() {
Expand Down
2 changes: 1 addition & 1 deletion MapboxDirectionsTests/MapboxDirectionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MapboxDirectionsTests: XCTestCase {
expectation.fulfill()
}

waitForExpectationsWithTimeout(10) { error in
waitForExpectationsWithTimeout(2) { error in
XCTAssertNil(error, "Error: \(error)")
}
}
Expand Down

0 comments on commit 132908c

Please sign in to comment.