From c399cf79849a5b44cbaa5b1593d6bc307c504d37 Mon Sep 17 00:00:00 2001 From: Yiling-J Date: Tue, 1 Oct 2024 10:06:05 +0800 Subject: [PATCH] test --- seqlock/seq_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/seqlock/seq_test.go b/seqlock/seq_test.go index a084606..6a5c338 100644 --- a/seqlock/seq_test.go +++ b/seqlock/seq_test.go @@ -34,12 +34,7 @@ func (n *Node[K, V]) Value() V { continue } - var value V - if seq > 1 { - value = n.value - } else { - value = n.value - } + value := n.value if seq == n.lock.Add(0) { return value