From 4df1d52e941c286dd27d3ec5ebebfed88aede1c3 Mon Sep 17 00:00:00 2001 From: Namdak Tonpa Date: Tue, 23 Apr 2019 04:21:49 +0300 Subject: [PATCH] 11 dialyzer errors left --- src/kvs.erl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/kvs.erl b/src/kvs.erl index 639e18a..7946cf2 100644 --- a/src/kvs.erl +++ b/src/kvs.erl @@ -132,11 +132,7 @@ ensure_link(Record, #kvs{mod=_Store}=Driver) -> C2 = setelement(#container.top, Container, Id), C3 = setelement(#container.count, C2, element(#container.count, Container)+1), - R = setelement(#iterator.feeds, Record, - [ case F1 of - {FN, Fd} -> {FN, Fd}; - _-> {F1, kvs:create(CName,{F1,element(#iterator.id,Record)},Driver)} - end || F1 <- element(#iterator.feeds, Record)]), + R = Record, R1 = setelement(#iterator.next, R, Next), R2 = setelement(#iterator.prev, R1, Prev),