Skip to content

Commit

Permalink
add a comment about why it's okay to have omitted a case
Browse files Browse the repository at this point in the history
  • Loading branch information
RutledgePaulV committed Jul 17, 2023
1 parent 5e52d24 commit f9e37b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lambdaisland/deep_diff2/diff_impl.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@
[false true]
(assoc m (->Insertion k) (get act k))
[true true]
(assoc m k (diff (get exp k) (get act k)))))
(assoc m k (diff (get exp k) (get act k)))
; `[false false]` will never occur because `k` necessarily
; originated from at least one of the two sets
))
{}
(set/union exp-ks act-ks))))

Expand Down

0 comments on commit f9e37b2

Please sign in to comment.