From 438f53348efa62f9ec2e28fde2b6c80583e594d5 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 4 Dec 2019 13:36:30 +0300 Subject: [PATCH] linting fixes, go.mod fixes Signed-off-by: Vasiliy Tolstov --- stan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stan.go b/stan.go index 69b7e43..6efcdfe 100644 --- a/stan.go +++ b/stan.go @@ -102,7 +102,7 @@ func (n *stanBroker) Address() string { } func setAddrs(addrs []string) []string { - var cAddrs []string + cAddrs := make([]string, 0, len(addrs)) for _, addr := range addrs { if len(addr) == 0 { continue