Skip to content

Commit f9e37b2

Browse files
committed
add a comment about why it's okay to have omitted a case
1 parent 5e52d24 commit f9e37b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lambdaisland/deep_diff2/diff_impl.cljc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@
120120
[false true]
121121
(assoc m (->Insertion k) (get act k))
122122
[true true]
123-
(assoc m k (diff (get exp k) (get act k)))))
123+
(assoc m k (diff (get exp k) (get act k)))
124+
; `[false false]` will never occur because `k` necessarily
125+
; originated from at least one of the two sets
126+
))
124127
{}
125128
(set/union exp-ks act-ks))))
126129

0 commit comments

Comments
 (0)