Create Pleroma.Maps.put_if_present(map, key, value, value_fun // &{:ok, &1})
Unifies all the similar functions to one and simplify some blocks with it.
lib/pleroma/maps.ex
0 → 100644
Please register or sign in to comment
Unifies all the similar functions to one and simplify some blocks with it.