From d4bb369642fe537501194ac58e3014577b6a2ef5 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 12 Dec 2013 11:08:01 -0800 Subject: [PATCH] Remove useless check since we are doing a DISTINCT query --- consul/state_store.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/consul/state_store.go b/consul/state_store.go index dbd95f977..ab9afccb4 100644 --- a/consul/state_store.go +++ b/consul/state_store.go @@ -234,9 +234,7 @@ func (s *StateStore) Services() map[string][]string { } tags := services[service] - if !strContains(tags, tag) { - tags = append(tags, tag) - } + tags = append(tags, tag) services[service] = tags }