fix: Fix the issue of abnormal clam scan status judgment (#11172)

This commit is contained in:
ssongliu 2025-12-03 14:13:22 +08:00 committed by GitHub
parent fef13211a0
commit 8c32fa3e6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,12 +65,12 @@ func AnalysisFromLog(pathItem string, record *model.ClamRecord) {
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")
if !isExist {
return false
}
if isActive {
isActive, _ := controller.CheckActive("clam")
if !isActive {
return false
}
}