From 51ff7d8c49d174d057b4f508f3e113e1ca86bd1a Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Thu, 22 Aug 2024 13:50:10 +0300 Subject: [PATCH] dnsforward: imp code --- internal/dnsforward/ipset.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/dnsforward/ipset.go b/internal/dnsforward/ipset.go index dcc55e1d772..7347890a85e 100644 --- a/internal/dnsforward/ipset.go +++ b/internal/dnsforward/ipset.go @@ -21,7 +21,7 @@ type ipsetHandler struct { } // newIpsetHandler returns a new initialized [ipsetHandler]. It is not safe for -// concurrent use. c is always non-nil for [Server.Close]. +// concurrent use. func newIpsetHandler( ctx context.Context, logger *slog.Logger, @@ -50,7 +50,7 @@ func newIpsetHandler( return h, nil } else if err != nil { - return h, fmt.Errorf("initializing ipset: %w", err) + return nil, fmt.Errorf("initializing ipset: %w", err) } return h, nil