Chore: Enable golangci-lint

Add a GitHub actions workflow to run golangci-lint.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ
2025-01-05 18:36:25 +01:00
parent d3641bb4b9
commit 75296b4b7e
9 changed files with 63 additions and 23 deletions

View File

@@ -211,7 +211,7 @@ func startBacklightTickers() {
// Don't start the tickers if the display is switched off.
// Set the display to off if that's the case.
if config.DisplayMaxBrightness == 0 {
setDisplayBrightness(0)
_ = setDisplayBrightness(0)
return
}
@@ -221,7 +221,7 @@ func startBacklightTickers() {
defer dimTicker.Stop()
go func() {
for {
for { //nolint:gosimple
select {
case <-dimTicker.C:
tick_displayDim()
@@ -236,7 +236,7 @@ func startBacklightTickers() {
defer offTicker.Stop()
go func() {
for {
for { //nolint:gosimple
select {
case <-offTicker.C:
tick_displayOff()