Skip to content

Commit

Permalink
test: remove redundant defer
Browse files Browse the repository at this point in the history
Remove a few redundant defer calls.
  • Loading branch information
gaukas committed Oct 27, 2023
1 parent f75708a commit b2793a2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions transport/v0/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ func BenchmarkListenerInbound(b *testing.B) {
if goroutineErr != nil {
b.Fatal(goroutineErr)
}
defer waterConn.Close() // skipcq: GO-S2307

err = sanityCheckConn(peerConn, waterConn, []byte("hello"), []byte("hello"))
if err != nil {
Expand Down Expand Up @@ -278,7 +277,6 @@ func BenchmarkReverseListenerInbound(b *testing.B) {
if goroutineErr != nil {
b.Fatal(goroutineErr)
}
defer waterConn.Close() // skipcq: GO-S2307

err = sanityCheckConn(peerConn, waterConn, []byte("hello"), []byte("olleh"))
if err != nil {
Expand Down

0 comments on commit b2793a2

Please sign in to comment.