Skip to content

Commit

Permalink
Merge pull request #94 from inamiy/access-level
Browse files Browse the repository at this point in the history
Change access level of RequestType.parseData() to public.
  • Loading branch information
ishkawa committed Oct 27, 2015
2 parents 392844f + 8df1f01 commit d973152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion APIKit/RequestType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public extension RequestType {
}

// Use Result here because `throws` loses type info of an error (in Swift 2 beta 2)
internal func parseData(data: NSData, URLResponse: NSURLResponse?) -> Result<Self.Response, APIError> {
public func parseData(data: NSData, URLResponse: NSURLResponse?) -> Result<Self.Response, APIError> {
guard let HTTPURLResponse = URLResponse as? NSHTTPURLResponse else {
return .Failure(.NotHTTPURLResponse(URLResponse))
}
Expand Down

0 comments on commit d973152

Please sign in to comment.