Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b1eeb97

Browse files
committedJul 4, 2024·
fix: unnecessary cast
Signed-off-by: Thomas Poignant <[email protected]>
1 parent c631ec5 commit b1eeb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Tests/go-feature-flag-providerTests/ofrep_api_mock.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MockNetworkingService: NetworkingService {
2929

3030
var data = mockData ?? Data()
3131
var headers: [String: String]? = nil
32-
if mockStatus == 429 || (targetingKey as! String == "429" && callCounter >= 2){
32+
if mockStatus == 429 || (targetingKey == "429" && callCounter >= 2){
3333
headers = ["Retry-After": "120"]
3434
mockStatus = 429
3535
let response = HTTPURLResponse(url: request.url!, statusCode: mockStatus, httpVersion: nil, headerFields: headers)!

0 commit comments

Comments
 (0)
Please sign in to comment.