]> Entropealabs - cluster_kv.git/commitdiff
just insert
authorChristopher <chris@entropealabs.com>
Sun, 8 Mar 2020 04:57:40 +0000 (22:57 -0600)
committerChristopher <chris@entropealabs.com>
Sun, 8 Mar 2020 04:57:40 +0000 (22:57 -0600)
lib/cluster_kv/db.ex

index ca8eae5875a162f36e7a2ff4845a4cadbb47f2fd..e1fba76758d64986cd7bb6405140e42d6cd24a9f 100644 (file)
@@ -110,7 +110,7 @@ defmodule ClusterKV.DB do
 
       [{_, val} = old] when is_list(val) ->
         new = fun.(old, value)
-        1 = :ets.insert(db, new)
+        :ets.insert(db, new)
 
       [_] ->
         :ets.insert(db, {key, [value]})