summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-07-22 18:13:25 +0300
committerAndrej Mihajlov <and@mullvad.net>2020-07-22 18:35:43 +0300
commitb4d6cd798392957ddb50f111d4f5231b89f3defc (patch)
treee77e58bdc99883ee443ea6ccd14fdf629b1dca89
parent056a90ffe4e1e6eed7de6119e1aec440bfa4c7ce (diff)
downloadmullvadvpn-b4d6cd798392957ddb50f111d4f5231b89f3defc.tar.xz
mullvadvpn-b4d6cd798392957ddb50f111d4f5231b89f3defc.zip
Update comment
-rw-r--r--ios/MullvadVPN/MullvadRest.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadVPN/MullvadRest.swift b/ios/MullvadVPN/MullvadRest.swift
index d8f96e529a..de1b51067f 100644
--- a/ios/MullvadVPN/MullvadRest.swift
+++ b/ios/MullvadVPN/MullvadRest.swift
@@ -265,7 +265,7 @@ struct RestEndpoint<Input, Response> where Input: RestPayload, Response: RestRes
}
}
- /// A private helper that parses the JSON response in case of success (HTTP 200)
+ /// A private helper that parses the JSON response in case of success (HTTP 2xx)
private static func decodeSuccessResponse(_ responseData: Data) -> Result<Response.Output, RestError> {
return Result { () -> Response.Output in
return try Response.decodeResponse(responseData)
@@ -274,7 +274,7 @@ struct RestEndpoint<Input, Response> where Input: RestPayload, Response: RestRes
})
}
- /// A private helper that parses the JSON response in case of error (Any HTTP code except 200)
+ /// A private helper that parses the JSON response in case of error (Any HTTP code except 2xx)
private static func decodeErrorResponse(_ responseData: Data) -> Result<ServerErrorResponse, RestError> {
return Result { () -> ServerErrorResponse in
return try ServerErrorResponse.decodeResponse(responseData)