Skip to content

Commit af1ac9c

Browse files
committed
Fix lint warnings
1 parent 64a3218 commit af1ac9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

listeners.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (fcl *fakeCloseListener) Close() error {
131131
// and this is kind of cheating, but it works, and
132132
// it apparently even works on Windows.
133133
_ = fcl.sharedListener.setDeadline()
134-
listenerPool.Delete(fcl.sharedListener.key)
134+
_, _ = listenerPool.Delete(fcl.sharedListener.key)
135135
}
136136
return nil
137137
}
@@ -163,7 +163,7 @@ type fakeClosePacketConn struct {
163163

164164
func (fcpc *fakeClosePacketConn) Close() error {
165165
if atomic.CompareAndSwapInt32(&fcpc.closed, 0, 1) {
166-
listenerPool.Delete(fcpc.sharedPacketConn.key)
166+
_, _ = listenerPool.Delete(fcpc.sharedPacketConn.key)
167167
}
168168
return nil
169169
}

0 commit comments

Comments
 (0)