We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 588a89f commit e043a46Copy full SHA for e043a46
2 files changed
SimpleVIPExample/Constants/Constants.swift
@@ -23,8 +23,6 @@ enum IntegerConstants: Int {
23
case one = 1
24
case two = 2
25
case three = 3
26
- case twoHundred = 200
27
- case twoHundredNinetyNine = 299
28
}
29
30
enum StringConstant: String {
SimpleVIPExample/Helper/APIManager.swift
@@ -39,7 +39,7 @@ final class APIManager {
39
40
41
guard let response = response as? HTTPURLResponse,
42
- IntegerConstants.twoHundred.rawValue ... IntegerConstants.twoHundredNinetyNine.rawValue ~= response.statusCode else {
+ 200 ... 299 ~= response.statusCode else {
43
completion(.failure(.invalidResponse))
44
return
45
0 commit comments