ok not has

This commit is contained in:
Robert Vollmert 2015-11-09 15:00:31 +01:00
parent 1312da4c0c
commit 5183814775
1 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ func (m *MetricVec) DeleteLabelValues(lvs ...string) bool {
if err != nil {
return false
}
if _, has := m.children[h]; !has {
if _, ok := m.children[h]; !ok {
return false
}
delete(m.children, h)
@ -179,7 +179,7 @@ func (m *MetricVec) Delete(labels Labels) bool {
if err != nil {
return false
}
if _, has := m.children[h]; !has {
if _, ok := m.children[h]; !ok {
return false
}
delete(m.children, h)