wgengine/magicsock: remove named return

Doesn't add anything.

Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
Josh Bleecher Snyder 2021-04-20 10:08:46 -07:00
parent a2a2c0ce1c
commit 48e30bb8de

View File

@ -2768,7 +2768,7 @@ type RebindingUDPConn struct {
}
// currentConn returns c's current pconn.
func (c *RebindingUDPConn) currentConn() (pconn net.PacketConn) {
func (c *RebindingUDPConn) currentConn() net.PacketConn {
c.mu.Lock()
defer c.mu.Unlock()
return c.pconn