Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiling-J committed Oct 1, 2024
1 parent 1e30340 commit c399cf7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions seqlock/seq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c399cf7

Please sign in to comment.