From 72da7cd5d6ff1eeb24df4d1b4ac55263ca11394f Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 13 Jan 2015 18:56:20 +0000 Subject: [PATCH] refactor: remove superfluous check which is already performed by the caller --- router/connection.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/router/connection.go b/router/connection.go index 68c1ae2b..497b3a6b 100644 --- a/router/connection.go +++ b/router/connection.go @@ -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