Browse Source

Merge pull request #404 from pitiphong-p/review-progress-property

Remove optional type from Request.progress property.
Mattt Thompson 10 years ago
parent
commit
a68decf9b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Alamofire.swift

+ 1 - 1
Source/Alamofire.swift

@@ -545,7 +545,7 @@ public class Request {
     public var response: NSHTTPURLResponse? { return task.response as? NSHTTPURLResponse }
 
     /// The progress of the request lifecycle.
-    public var progress: NSProgress? { return delegate.progress }
+    public var progress: NSProgress { return delegate.progress }
 
     private init(session: NSURLSession, task: NSURLSessionTask) {
         self.session = session