style: fix lint (#1335)

This commit is contained in:
MaineK00n
2021-11-19 15:46:51 +09:00
committed by GitHub
parent 89d94ad85a
commit 0c6a892893

View File

@@ -820,6 +820,7 @@ type AlertDict struct {
USCERT []Alert `json:"uscert"`
}
// IsEmpty checks if the content of AlertDict is empty
func (a AlertDict) IsEmpty() bool {
return len(a.CISA) == 0 && len(a.JPCERT) == 0 && len(a.USCERT) == 0
}