From 9fd3fc57bd98c4c4799ddf860a4c101654aa449b Mon Sep 17 00:00:00 2001 From: Nahshon Unna-Tsameret Date: Tue, 19 Apr 2022 14:58:55 +0300 Subject: [PATCH] Fix linter warnings Fix warnings from golangci-lint Signed-off-by: Nahshon Unna-Tsameret --- hat/hat.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hat/hat.go b/hat/hat.go index 63a74ea..52e3f4a 100644 --- a/hat/hat.go +++ b/hat/hat.go @@ -23,10 +23,9 @@ type Interface interface { // green and the 5 LB bits are blue // rrrrrggggggbbbbb const ( - redColor color.Color = 0b1111100000000000 - rmask common.Color = 0b111110000000000000000000 - gmask common.Color = 0b000000001111110000000000 - bmask common.Color = 0b000000000000000011111000 + rmask common.Color = 0b111110000000000000000000 + gmask common.Color = 0b000000001111110000000000 + bmask common.Color = 0b000000000000000011111000 ) // to convert 24-bit color to 16-bit color, we are taking only the 5 (for red and @@ -167,7 +166,7 @@ func reversColor(c color.Color) color.Color { } func (h Hat) gracefulShutDown() { - screen.Clear() + _ = screen.Clear() // signal the controller we've done close(h.events) }