Skip to content

Commit

Permalink
Merge pull request Alamofire#318 from astrabot/use-defined-type-for-d…
Browse files Browse the repository at this point in the history
…estination

Use defined type for clojure 'destination' in download functions
  • Loading branch information
mattt committed Jan 29, 2015
2 parents 50c3e3c + 6f0a61e commit 1b6ff9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Alamofire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ extension Manager {
case ResumeData(NSData)
}

private func download(downloadable: Downloadable, destination: (NSURL, NSHTTPURLResponse) -> (NSURL)) -> Request {
private func download(downloadable: Downloadable, destination: Request.DownloadFileDestination) -> Request {
var downloadTask: NSURLSessionDownloadTask!

switch downloadable {
Expand Down Expand Up @@ -1126,7 +1126,7 @@ extension Manager {

:returns: The created download request.
*/
public func download(URLRequest: URLRequestConvertible, destination: (NSURL, NSHTTPURLResponse) -> (NSURL)) -> Request {
public func download(URLRequest: URLRequestConvertible, destination: Request.DownloadFileDestination) -> Request {
return download(.Request(URLRequest.URLRequest), destination: destination)
}

Expand Down

0 comments on commit 1b6ff9b

Please sign in to comment.