Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions agent/utils/clam/clam.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@

func StopAllClamJob(withCheck bool, clamRepo repo.IClamRepo) bool {
if withCheck {
isActive := false
isexist, _ := controller.CheckExist("clam")
if isexist {
isActive, _ = controller.CheckActive("clam")
isExist, _ := controller.CheckExist("clam")

Check failure on line 68 in agent/utils/clam/clam.go

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Handle this error explicitly or document why it can be safely ignored.

See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZri2dLYJl6m7n_bnMce&open=AZri2dLYJl6m7n_bnMce&pullRequest=11172
if !isExist {
return false
}
if isActive {
isActive, _ := controller.CheckActive("clam")

Check failure on line 72 in agent/utils/clam/clam.go

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Handle this error explicitly or document why it can be safely ignored.

See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZri2dLYJl6m7n_bnMcf&open=AZri2dLYJl6m7n_bnMcf&pullRequest=11172
if !isActive {
return false
}
}
Expand Down
Loading