Skip to content

Commit e043a46

Browse files
committed
- Minor changes
1 parent 588a89f commit e043a46

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

SimpleVIPExample/Constants/Constants.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ enum IntegerConstants: Int {
2323
case one = 1
2424
case two = 2
2525
case three = 3
26-
case twoHundred = 200
27-
case twoHundredNinetyNine = 299
2826
}
2927

3028
enum StringConstant: String {

SimpleVIPExample/Helper/APIManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class APIManager {
3939
}
4040

4141
guard let response = response as? HTTPURLResponse,
42-
IntegerConstants.twoHundred.rawValue ... IntegerConstants.twoHundredNinetyNine.rawValue ~= response.statusCode else {
42+
200 ... 299 ~= response.statusCode else {
4343
completion(.failure(.invalidResponse))
4444
return
4545
}

0 commit comments

Comments
 (0)