summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-01-10 23:27:39 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2022-01-10 23:27:39 -0700
commitaf1ac9cd2ecf95deabb194095cf5c5e66ee2fe86 (patch)
treeba7696bc66c5980a885742b20fee79218b435df3
parent64a3218f5c7ba98a51c76065ed32ae860351e779 (diff)
Fix lint warnings
-rw-r--r--listeners.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/listeners.go b/listeners.go
index 5f02072..15ffbbe 100644
--- a/listeners.go
+++ b/listeners.go
@@ -131,7 +131,7 @@ func (fcl *fakeCloseListener) Close() error {
// and this is kind of cheating, but it works, and
// it apparently even works on Windows.
_ = fcl.sharedListener.setDeadline()
- listenerPool.Delete(fcl.sharedListener.key)
+ _, _ = listenerPool.Delete(fcl.sharedListener.key)
}
return nil
}
@@ -163,7 +163,7 @@ type fakeClosePacketConn struct {
func (fcpc *fakeClosePacketConn) Close() error {
if atomic.CompareAndSwapInt32(&fcpc.closed, 0, 1) {
- listenerPool.Delete(fcpc.sharedPacketConn.key)
+ _, _ = listenerPool.Delete(fcpc.sharedPacketConn.key)
}
return nil
}