mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(style): should omit comparison to bool constant
This commit is contained in:
@@ -27,7 +27,7 @@ func labelToSeed(key string, val string) int64 {
|
||||
// from label key and value passed here
|
||||
// It's used to generate unique colors for configured labels
|
||||
func ColorLabel(colorStore models.LabelsColorMap, key string, val string) {
|
||||
if slices.StringInSlice(config.Config.Labels.Color.Unique, key) == true {
|
||||
if slices.StringInSlice(config.Config.Labels.Color.Unique, key) {
|
||||
if _, found := colorStore[key]; !found {
|
||||
colorStore[key] = make(map[string]models.LabelColors)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user