Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 00:15 UTC
Fix lint warnings
Matthew Holt committed
Jan 10, 2022 at 23:27 UTC
af1ac9cd2ecf95deabb194095cf5c5e66ee2fe86
1 file changed
+2
-2
listeners.go
+2
-2
@@ -131,7 +131,7 @@ func (fcl *fakeCloseListener) Close() error {
131
// and this is kind of cheating, but it works, and
132
// it apparently even works on Windows.
133
_ = fcl.sharedListener.setDeadline()
134
- listenerPool.Delete(fcl.sharedListener.key)
134
+ _, _ = listenerPool.Delete(fcl.sharedListener.key)
135
}
136
return nil
137
}
@@ -163,7 +163,7 @@ type fakeClosePacketConn struct {
163
164
func (fcpc *fakeClosePacketConn) Close() error {
165
if atomic.CompareAndSwapInt32(&fcpc.closed, 0, 1) {
166
- listenerPool.Delete(fcpc.sharedPacketConn.key)
166
+ _, _ = listenerPool.Delete(fcpc.sharedPacketConn.key)
167
}
168
return nil
169
}