Explorar o código

Minor refactoring

Mattt Thompson %!s(int64=11) %!d(string=hai) anos
pai
achega
bc6a58d769
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Tests/ManagerTests.swift

+ 3 - 3
Tests/ManagerTests.swift

@@ -34,9 +34,9 @@ class AlamofireManagerTestCase: XCTestCase {
 
         let expectation = expectationWithDescription("\(URL)")
 
-        let request = manager.request(URLRequest).response { (_,_,_,_) in expectation.fulfill() }
-
-        request.resume()
+        manager.request(URLRequest)
+            .response { (_,_,_,_) in expectation.fulfill() }
+            .resume()
 
         waitForExpectationsWithTimeout(10) { (error) in
             XCTAssertNil(error, "\(error)")