refactor: remove superfluous check

which is already performed by the caller
This commit is contained in:
Matthias Radestock committed 2015-01-13 18:56:20 +00:00
1 parent ee6f92cd24
commit 72da7cd5d6
1 file changed
-3
-3
View File
@@ -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