mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
fix(backend): remove unnecessary guard around map access
This commit is contained in:
@@ -35,11 +35,7 @@ func countLabel(countStore map[string]map[string]int, key string, val string) {
|
||||
if _, found := countStore[key]; !found {
|
||||
countStore[key] = make(map[string]int)
|
||||
}
|
||||
if _, found := countStore[key][val]; found {
|
||||
countStore[key][val]++
|
||||
} else {
|
||||
countStore[key][val] = 1
|
||||
}
|
||||
countStore[key][val]++
|
||||
}
|
||||
|
||||
func countersToLabelStats(counters map[string]map[string]int) models.LabelNameStatsList {
|
||||
|
||||
Reference in New Issue
Block a user