Function
handleAlert
(infectedFiles, clamName string, clamId uint)
Source from the content-addressed store, hash-verified
| 493 | } |
| 494 | |
| 495 | func handleAlert(infectedFiles, clamName string, clamId uint) { |
| 496 | itemInfected, _ := strconv.Atoi(strings.TrimSpace(infectedFiles)) |
| 497 | if itemInfected <= 0 { |
| 498 | return |
| 499 | } |
| 500 | pushAlert := dto.PushAlert{ |
| 501 | TaskName: clamName, |
| 502 | AlertType: "clams", |
| 503 | EntryID: clamId, |
| 504 | Param: strconv.Itoa(itemInfected), |
| 505 | } |
| 506 | _ = alert_push.PushAlert(pushAlert) |
| 507 | } |
Tested by
no test coverage detected