Skip to content

Commit

Permalink
Silent warning
Browse files Browse the repository at this point in the history
  • Loading branch information
akiselevn committed Dec 22, 2023
1 parent db93ed3 commit 8108508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CardManagementSDK/Source/Network/NIMobileAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ extension NIMobileAPI {
completion(response, error)
}
case let .failure(tokenError):
var errorRespose = NIErrorResponse(error: NISDKErrors.TOKEN_ERROR)
let errorRespose = NIErrorResponse(error: NISDKErrors.TOKEN_ERROR)
if case let .networkError(error) = tokenError {
errorRespose.errorCode = (error as NSError).code.description
}
// if we got token error, there are no need to retry request
completion(nil, NIErrorResponse(error: NISDKErrors.TOKEN_ERROR))
completion(nil, errorRespose)
}
}
}
Expand Down

0 comments on commit 8108508

Please sign in to comment.