mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 00:56:16 +00:00
Fix golangci-lint findings and improve code quality
Move example files to separate packages to avoid main redeclaration. Fix cyclomatic complexity and variable shadowing. Address errcheck and wsl linting issues. Update tests to handle capabilities and fix panics. Apply consistent formatting with gofmt.
This commit is contained in:
@@ -1075,6 +1075,7 @@ func (c *Client) GetAudioDSPControls() (*models.AudioDSPControls, error) {
|
||||
}
|
||||
|
||||
var dspControls models.AudioDSPControls
|
||||
|
||||
err = c.get("/audiodspcontrols", &dspControls)
|
||||
|
||||
return &dspControls, err
|
||||
@@ -1146,6 +1147,7 @@ func (c *Client) GetAudioProductToneControls() (*models.AudioProductToneControls
|
||||
}
|
||||
|
||||
var toneControls models.AudioProductToneControls
|
||||
|
||||
err = c.get("/audioproducttonecontrols", &toneControls)
|
||||
|
||||
return &toneControls, err
|
||||
@@ -1199,6 +1201,7 @@ func (c *Client) GetAudioProductLevelControls() (*models.AudioProductLevelContro
|
||||
}
|
||||
|
||||
var levelControls models.AudioProductLevelControls
|
||||
|
||||
err = c.get("/audioproductlevelcontrols", &levelControls)
|
||||
|
||||
return &levelControls, err
|
||||
|
||||
Reference in New Issue
Block a user