Skip to content

Commit 18426b0

Browse files
fix: type checking
1 parent 7f644eb commit 18426b0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

DevCycle/Models/UserConfig.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,16 +230,14 @@ public struct Variable: Equatable {
230230
}
231231

232232
switch lhs.type {
233-
case "Boolean":
233+
case .Boolean:
234234
return (lhs.value as! Bool) == (rhs.value as! Bool)
235-
case "String":
235+
case .String:
236236
return (lhs.value as! String) == (rhs.value as! String)
237-
case "Number":
237+
case .Number:
238238
return (lhs.value as! NSNumber) == (rhs.value as! NSNumber)
239-
case "JSON":
239+
case .JSON:
240240
return (lhs.value as! NSDictionary) == (rhs.value as! NSDictionary)
241-
default:
242-
return false
243241
}
244242
}
245243
}

0 commit comments

Comments
 (0)