Skip to content

Commit

Permalink
style: fix lint (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n authored Nov 19, 2021
1 parent 89d94ad commit 0c6a892
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/vulninfos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0c6a892

Please sign in to comment.