From a762e63bc8ecb395e81e9ddb428ddffabc1bc83a Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Tue, 8 Oct 2024 10:43:43 +0300 Subject: [PATCH] [#10] dialer: Drop nil error Signed-off-by: Dmitrii Stepanov --- dialer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dialer.go b/dialer.go index a78e3b5..9b242ff 100644 --- a/dialer.go +++ b/dialer.go @@ -23,7 +23,7 @@ type Dialer interface { // Multidialer is like Dialer, but supports link state updates. type Multidialer interface { Dialer - UpdateInterface(name string, addr netip.Addr, status bool) error + UpdateInterface(name string, addr netip.Addr, status bool) } var ( @@ -389,7 +389,7 @@ func (d *dialer) dialContext(nd *net.Dialer, ctx context.Context, network, addre // UpdateInterface implements the Multidialer interface. // Updating address on a specific interface is currently not supported. -func (d *dialer) UpdateInterface(iface string, addr netip.Addr, up bool) error { +func (d *dialer) UpdateInterface(iface string, addr netip.Addr, up bool) { d.mtx.Lock() defer d.mtx.Unlock() @@ -408,7 +408,6 @@ func (d *dialer) UpdateInterface(iface string, addr netip.Addr, up bool) error { } } } - return nil } // splitByType divides an address list into two categories: