fix: 修复所有 golangci-lint 错误

- goimports: 修复 3 个文件的导入顺序
- ineffassign: 移除无效的变量初始化
- staticcheck SA9003: 修复空分支问题
This commit is contained in:
2026-04-20 09:35:56 +08:00
parent d91b9744fa
commit 3863c9d480
7 changed files with 12 additions and 21 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ func (r ShellJob) executeShellByLocal() {
}
now := time.Now()
var msg = ""
var msg string
log.Debug("run local command", log.String("cmd", metadataShell.Shell))
output, outerr, err := utils.Exec(metadataShell.Shell)
if err != nil {