fix(style): should omit comparison to bool constant

This commit is contained in:
Łukasz Mierzwa
2018-08-11 08:25:57 +01:00
parent 0310d9d4bc
commit 7a6538e8ff

View File

@@ -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)
}