We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef1321 commit 8c32fa3Copy full SHA for 8c32fa3
agent/utils/clam/clam.go
@@ -65,12 +65,12 @@ func AnalysisFromLog(pathItem string, record *model.ClamRecord) {
65
66
func StopAllClamJob(withCheck bool, clamRepo repo.IClamRepo) bool {
67
if withCheck {
68
- isActive := false
69
- isexist, _ := controller.CheckExist("clam")
70
- if isexist {
71
- isActive, _ = controller.CheckActive("clam")
+ isExist, _ := controller.CheckExist("clam")
+ if !isExist {
+ return false
72
}
73
- if isActive {
+ isActive, _ := controller.CheckActive("clam")
+ if !isActive {
74
return false
75
76
0 commit comments