From c118dfa54c9d415d6092460a770b2285e243a959 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Tue, 8 Apr 2025 10:44:51 +0200 Subject: [PATCH] fix lint Signed-off-by: Csaba Kiraly --- p2p/nat/natupnp.go | 1 - p2p/server_nat.go | 1 - 2 files changed, 2 deletions(-) diff --git a/p2p/nat/natupnp.go b/p2p/nat/natupnp.go index f98d1f043a..0080e3fc4d 100644 --- a/p2p/nat/natupnp.go +++ b/p2p/nat/natupnp.go @@ -83,7 +83,6 @@ func (n *upnp) ExternalIP() (addr net.IP, err error) { } func (n *upnp) AddMapping(protocol string, extport, intport int, desc string, lifetime time.Duration) (uint16, error) { - ip, err := n.internalAddress() if err != nil { return 0, err diff --git a/p2p/server_nat.go b/p2p/server_nat.go index f4e222ef0a..3cf14a8b18 100644 --- a/p2p/server_nat.go +++ b/p2p/server_nat.go @@ -198,7 +198,6 @@ func (srv *Server) portMappingLoop() { } } m.nextTime = srv.clock.Now().Add(portMapRefreshInterval) - } } }