Skip to content

Commit

Permalink
remove unnecessary defer
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed Oct 3, 2023
1 parent 5aaaf17 commit c95d23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port_range_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func listenLocalPort(t *testing.T) (net.Listener, int) {
for {
conn, _ := ln.Accept()
if conn != nil {
defer conn.Close()
conn.Close()
}
}
}()
Expand Down

0 comments on commit c95d23e

Please sign in to comment.