Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 49371b2

Browse files
authored
merge model should return true for use with binding SC (#1742)
1 parent 7de229a commit 49371b2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Classes/Issues/Merge/IssueMergeModel.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ final class IssueMergeModel: ListDiffable {
3232
}
3333

3434
func isEqual(toDiffableObject object: ListDiffable?) -> Bool {
35-
if self === object { return true }
36-
guard let object = object as? IssueMergeModel else { return false }
37-
return state == object.state
38-
// taking a shortcut instead of O(n) equality check. id should be enough
39-
&& contexts.count == object.contexts.count
35+
// used in binding SC
36+
return true
4037
}
4138

4239
}

0 commit comments

Comments
 (0)