linting fixes, go.mod fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
d438bee8bf
commit
438f53348e
2
stan.go
2
stan.go
@ -102,7 +102,7 @@ func (n *stanBroker) Address() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setAddrs(addrs []string) []string {
|
func setAddrs(addrs []string) []string {
|
||||||
var cAddrs []string
|
cAddrs := make([]string, 0, len(addrs))
|
||||||
for _, addr := range addrs {
|
for _, addr := range addrs {
|
||||||
if len(addr) == 0 {
|
if len(addr) == 0 {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user