Skip to content

Commit 4930eff

Browse files
authored
refactor: remove redundant 'equatable' for VariableValue under tests (#69)
1 parent db24373 commit 4930eff

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

Tests/FeaturevisorTypesTests/Extensions/Types+Equatable.swift

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,3 @@ extension GroupSegment: Equatable {
7373
}
7474
}
7575
}
76-
77-
extension VariableValue: Equatable {
78-
public static func == (lhs: VariableValue, rhs: VariableValue) -> Bool {
79-
switch (lhs, rhs) {
80-
case (.string(let lhsString), .string(let rhsString)):
81-
return lhsString == rhsString
82-
case (.double(let lhsDouble), .double(let rhsDouble)):
83-
return lhsDouble == rhsDouble
84-
case (.integer(let lhsInteger), .integer(let rhsInteger)):
85-
return lhsInteger == rhsInteger
86-
case (.array(let lhsArray), .array(let rhsArray)):
87-
return lhsArray == rhsArray
88-
case (.object(let lhsObject), .object(let rhsObject)):
89-
return lhsObject == rhsObject
90-
case (.json(let lhsJson), .json(let rhsJson)):
91-
return lhsJson == rhsJson
92-
case (.boolean(let lhsBoolean), .boolean(let rhsBoolean)):
93-
return lhsBoolean == rhsBoolean
94-
default:
95-
return false
96-
}
97-
}
98-
}

0 commit comments

Comments
 (0)