Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[PR #1558] Fixed bug and typo in AFError implementation.
  • Loading branch information
victorchee authored and cnoon committed Sep 19, 2016
1 parent 0ac38d7 commit fc95610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/AFError.swift
Expand Up @@ -144,7 +144,7 @@ extension AFError {
/// Returns whether the AFError is a parameter encoding error. When `true`, the `underlyingError` property will
/// contain the associated value.
public var isParameterEncodingError: Bool {
if case .multipartEncodingFailed = self { return true }
if case .parameterEncodingFailed = self { return true }
return false
}

Expand Down Expand Up @@ -297,8 +297,8 @@ extension AFError.ResponseValidationFailureReason {

var responseContentType: String? {
switch self {
case .unacceptableContentType(_, let reponseType):
return reponseType
case .unacceptableContentType(_, let responseType):
return responseType
default:
return nil
}
Expand Down

0 comments on commit fc95610

Please sign in to comment.