Skip to content

Commit

Permalink
contacts: ensure full deletion in +do-edit
Browse files Browse the repository at this point in the history
This was repeatedly deleting from the outer value, instead of the accumulator intended to replace it.

This would result in only a single key being deleted, even if an edit specified multiple keys for deletion.
  • Loading branch information
Fang- authored Dec 13, 2024
1 parent 1b28e10 commit eaa5834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desk/lib/contacts.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
=? don !=(~ del)
%+ roll del
|= [key=@tas acc=_don]
(~(del by don) key)
(~(del by acc) key)
don
:: +from-0: legacy to new type
::
Expand Down

0 comments on commit eaa5834

Please sign in to comment.