From 7a6538e8ff77672bdbef6b1ea1624112f75a620b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 11 Aug 2018 08:25:57 +0100 Subject: [PATCH] fix(style): should omit comparison to bool constant --- internal/transform/colors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/transform/colors.go b/internal/transform/colors.go index d3fef8b2d..5b70bf02c 100644 --- a/internal/transform/colors.go +++ b/internal/transform/colors.go @@ -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) }