linting fixes, go.mod fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2019-12-04 13:36:30 +03:00
parent d438bee8bf
commit 438f53348e

View File

@ -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