Ensure all values are used or _

pull/3274/head
Brian Brazil 7 years ago
parent 8740fcc657
commit ee88f0d222

@ -253,7 +253,7 @@ func (g *Group) copyState(from *Group) {
} }
for i, rule := range g.rules { for i, rule := range g.rules {
indexes, ok := ruleMap[rule.Name()] indexes, _ := ruleMap[rule.Name()]
if len(indexes) == 0 { if len(indexes) == 0 {
continue continue
} }

@ -61,13 +61,16 @@ func TestStoreHTTPErrorHandling(t *testing.T) {
serverURL, err := url.Parse(server.URL) serverURL, err := url.Parse(server.URL)
if err != nil { if err != nil {
panic(err) t.Fatal(err)
} }
c, err := NewClient(0, &clientConfig{ c, err := NewClient(0, &clientConfig{
url: &config.URL{serverURL}, url: &config.URL{serverURL},
timeout: model.Duration(time.Second), timeout: model.Duration(time.Second),
}) })
if err != nil {
t.Fatal(err)
}
err = c.Store(nil) err = c.Store(nil)
if !reflect.DeepEqual(err, test.err) { if !reflect.DeepEqual(err, test.err) {

Loading…
Cancel
Save