Skip to content

Commit 2d18bd8

Browse files
committed
fix: Fix the issue of abnormal clam scan status judgment
1 parent 5ff5b0a commit 2d18bd8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

agent/utils/clam/clam.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ func AnalysisFromLog(pathItem string, record *model.ClamRecord) {
6565

6666
func StopAllClamJob(withCheck bool, clamRepo repo.IClamRepo) bool {
6767
if withCheck {
68-
isActive := false
69-
isexist, _ := controller.CheckExist("clam")
70-
if isexist {
71-
isActive, _ = controller.CheckActive("clam")
68+
isExist, _ := controller.CheckExist("clam")
69+
if !isExist {
70+
return false
7271
}
73-
if isActive {
72+
isActive, _ := controller.CheckActive("clam")
73+
if !isActive {
7474
return false
7575
}
7676
}

0 commit comments

Comments
 (0)