From 0c6a8928936be9338b1daf8d1224cffa3ba628a9 Mon Sep 17 00:00:00 2001 From: MaineK00n Date: Fri, 19 Nov 2021 15:46:51 +0900 Subject: [PATCH] style: fix lint (#1335) --- models/vulninfos.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/vulninfos.go b/models/vulninfos.go index a55fd530..02bf146c 100644 --- a/models/vulninfos.go +++ b/models/vulninfos.go @@ -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 }