mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user