Skip to content

Commit 757ddb9

Browse files
committed
Address comments per CR
1 parent 0e60d36 commit 757ddb9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

threadsafe_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,14 +652,13 @@ func Test_DeadlockOnEachCallbackWhenPanic(t *testing.T) {
652652
defer func() {
653653
if r := recover(); r != nil {
654654
panicOccured = true
655-
err = fmt.Errorf("failed to print IDs: panicked: %v", r)
655+
err = fmt.Errorf("failed to do work: %v", r)
656656
}
657657
}()
658658

659659
s.Each(func(n *int) bool {
660660
// NOTE: this will throw a panic once we get to the nil element.
661-
result := *n * 2
662-
fmt.Println("result is dereferenced doubled:", result)
661+
_ = *n * 2
663662
return false
664663
})
665664

0 commit comments

Comments
 (0)