refactor: update golintci-lint and linter issues

* Update golangci-lint

Update golangci-lint to v2.

Signed-off-by: SuperQ <superq@gmail.com>

* Fixup various linter issues.

Signed-off-by: SuperQ <superq@gmail.com>

---------

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
Ben Kochie
2025-04-13 02:55:30 +01:00
committed by GitHub
parent 951e673e0c
commit 009b0abbe9
11 changed files with 72 additions and 54 deletions

View File

@@ -219,9 +219,10 @@ var defaultMode = &serial.Mode{
func initSerialPort() {
_ = reopenSerialPort()
if config.ActiveExtension == "atx-power" {
switch config.ActiveExtension {
case "atx-power":
_ = mountATXControl()
} else if config.ActiveExtension == "dc-power" {
case "dc-power":
_ = mountDCControl()
}
}