mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
enabled linters and fixes for: misspell, predeclared, unconvert, ineffassign, gosimple, govet (#1595)
This commit is contained in:
parent
b572f64dc6
commit
10585bfecc
25 changed files with 41 additions and 77 deletions
|
@ -799,7 +799,7 @@ func (c *Client) QueryAlertWithFilter(filter map[string][]string) ([]*ent.Alert,
|
|||
func (c *Client) DeleteAlertGraphBatch(alertItems []*ent.Alert) (int, error) {
|
||||
idList := make([]int, 0)
|
||||
for _, alert := range alertItems {
|
||||
idList = append(idList, int(alert.ID))
|
||||
idList = append(idList, alert.ID)
|
||||
}
|
||||
|
||||
deleted, err := c.Ent.Alert.Delete().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue