Fix capitalization
This commit is contained in:
parent
e858c8ad02
commit
6d51a8e0f5
|
|
@ -3,7 +3,7 @@ import Foundation
|
|||
/// Extension for network Error classification
|
||||
public extension Error {
|
||||
|
||||
/// Returns: TRUE if error is connection error
|
||||
/// Returns: true if error is connection error
|
||||
var isConnectionError: Bool {
|
||||
guard let urlError = self as? URLError else {
|
||||
return false
|
||||
|
|
@ -12,7 +12,7 @@ public extension Error {
|
|||
return urlError.code == .notConnectedToInternet || urlError.code == .timedOut
|
||||
}
|
||||
|
||||
/// Returns: TRUE if server json response is not valid
|
||||
/// Returns: true if server json response is not valid
|
||||
var isResponseSerializationError: Bool {
|
||||
return (self as? AFError)?.isResponseSerializationError ?? false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue