From b173de0c26cb821729617f14d407427dc9cda66f Mon Sep 17 00:00:00 2001 From: tariqibrahim Date: Mon, 28 Jan 2019 17:14:23 -0800 Subject: [PATCH] fix ineffectual assignment in dns.go Signed-off-by: tariqibrahim --- discovery/dns/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/dns/dns.go b/discovery/dns/dns.go index dff36f770..b21ec3503 100644 --- a/discovery/dns/dns.go +++ b/discovery/dns/dns.go @@ -178,7 +178,7 @@ func (d *Discovery) refresh(ctx context.Context, name string, ch chan<- []*targe } for _, record := range response.Answer { - target := model.LabelValue("") + var target model.LabelValue switch addr := record.(type) { case *dns.SRV: // Remove the final dot from rooted DNS names to make them look more usual.