Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
Fix warnings from golangci-lint

Signed-off-by: Nahshon Unna-Tsameret <nahsh.ut@gmail.com>
  • Loading branch information
nunnatsa committed Apr 19, 2022
1 parent 8c77331 commit 9fd3fc5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions hat/hat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 9fd3fc5

Please sign in to comment.