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