mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(backend): fix linter errors
This commit is contained in:
committed by
Łukasz Mierzwa
parent
6768a632b9
commit
db8488dbcc
@@ -408,9 +408,9 @@ func newStateCount() map[string]int {
|
||||
func stateFromStateCount(stateCount map[string]int) string {
|
||||
if stateCount[models.AlertStateActive] > 0 {
|
||||
return models.AlertStateActive
|
||||
} else if stateCount[models.AlertStateSuppressed] > 0 {
|
||||
return models.AlertStateSuppressed
|
||||
} else {
|
||||
return models.AlertStateUnprocessed
|
||||
}
|
||||
if stateCount[models.AlertStateSuppressed] > 0 {
|
||||
return models.AlertStateSuppressed
|
||||
}
|
||||
return models.AlertStateUnprocessed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user