From 55a15ecf12c55e47ff1be3f1679169fd4f2d78c5 Mon Sep 17 00:00:00 2001 From: Astone Date: Mon, 9 Dec 2019 11:18:45 +0800 Subject: [PATCH] fix tiny error in linting fixes --- network/resolver/dnssrv/dnssrv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/resolver/dnssrv/dnssrv.go b/network/resolver/dnssrv/dnssrv.go index 9bfe9638..63a92eda 100644 --- a/network/resolver/dnssrv/dnssrv.go +++ b/network/resolver/dnssrv/dnssrv.go @@ -17,7 +17,7 @@ func (r *Resolver) Resolve(name string) ([]*resolver.Record, error) { if err != nil { return nil, err } - records := make([]*resolver.Record, len(addrs)) + records := make([]*resolver.Record, 0, len(addrs)) for _, addr := range addrs { address := addr.Target if addr.Port > 0 {