From 6dde75f2b5ae9937dfeb8ea57db17b96716667cf Mon Sep 17 00:00:00 2001 From: Martin Martinez Rivera Date: Fri, 8 May 2020 11:27:26 -0700 Subject: [PATCH] Fix more empty string checks. (#5396) --- worker/groups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/groups.go b/worker/groups.go index 18ee8ea89ed..6f773d00e70 100644 --- a/worker/groups.go +++ b/worker/groups.go @@ -75,7 +75,7 @@ func groups() *groupi { func StartRaftNodes(walStore *badger.DB, bindall bool) { gr.ctx, gr.cancel = context.WithCancel(context.Background()) - if len(x.WorkerConfig.MyAddr) == 0 { + if x.WorkerConfig.MyAddr == "" { x.WorkerConfig.MyAddr = fmt.Sprintf("localhost:%d", workerPort()) } else { // check if address is valid or not