enabled linters and fixes for: misspell, predeclared, unconvert, ineffassign, gosimple, govet (#1595)

This commit is contained in:
mmetc 2022-06-16 14:41:54 +02:00 committed by GitHub
parent b572f64dc6
commit 10585bfecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 41 additions and 77 deletions

View file

@ -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().