mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 08:57:40 +08:00
Fix lint warnings
This commit is contained in:
parent
64a3218f5c
commit
af1ac9cd2e
|
@ -131,7 +131,7 @@ func (fcl *fakeCloseListener) Close() error {
|
||||||
// and this is kind of cheating, but it works, and
|
// and this is kind of cheating, but it works, and
|
||||||
// it apparently even works on Windows.
|
// it apparently even works on Windows.
|
||||||
_ = fcl.sharedListener.setDeadline()
|
_ = fcl.sharedListener.setDeadline()
|
||||||
listenerPool.Delete(fcl.sharedListener.key)
|
_, _ = listenerPool.Delete(fcl.sharedListener.key)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ type fakeClosePacketConn struct {
|
||||||
|
|
||||||
func (fcpc *fakeClosePacketConn) Close() error {
|
func (fcpc *fakeClosePacketConn) Close() error {
|
||||||
if atomic.CompareAndSwapInt32(&fcpc.closed, 0, 1) {
|
if atomic.CompareAndSwapInt32(&fcpc.closed, 0, 1) {
|
||||||
listenerPool.Delete(fcpc.sharedPacketConn.key)
|
_, _ = listenerPool.Delete(fcpc.sharedPacketConn.key)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user