refactor: remove superfluous check
which is already performed by the caller
This commit is contained in:
1 parent
ee6f92cd24
commit
72da7cd5d6
1 file changed
-3
@@ -212,9 +212,6 @@ func (conn *LocalConnection) queryLoop(queryChan <-chan *ConnectionInteraction,
|
||||
}
|
||||
|
||||
func (conn *LocalConnection) handleSetRemoteUDPAddr(remoteUDPAddr *net.UDPAddr) error {
|
||||
if remoteUDPAddr == nil {
|
||||
return nil
|
||||
}
|
||||
conn.Lock()
|
||||
old := conn.remoteUDPAddr
|
||||
conn.remoteUDPAddr = remoteUDPAddr
|
||||
|
||||
Reference in new issue
Block a user