aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/widget/color.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/widget/color.go b/ui/widget/color.go
index e2c2b68..37a931a 100644
--- a/ui/widget/color.go
+++ b/ui/widget/color.go
@@ -60,8 +60,8 @@ func GetHashColorName(s string) string {
return "yellow"
default:
h := fnv.New32a()
- h.Write([]byte(s))
- return colorNames[int(h.Sum32())%len(colorNames)]
+ _, _ = h.Write([]byte(s))
+ return colorNames[h.Sum32()%uint32(len(colorNames))]
}
}