*: fix 'ineffassign' issues

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee
2017-10-03 02:14:22 -07:00
parent 72fbe0576d
commit 0199bdc266
19 changed files with 38 additions and 23 deletions

View File

@ -112,7 +112,7 @@ func (tp *TCPProxy) pick() *remote {
case r.srv.Priority < bestPr:
bestPr = r.srv.Priority
w = 0
weighted, unweighted = nil, nil
weighted = nil
unweighted = []*remote{r}
fallthrough
case r.srv.Priority == bestPr: