mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
lint (errorlint) (#2644)
This commit is contained in:
parent
c2c173ac7e
commit
08694adf1b
8 changed files with 27 additions and 33 deletions
|
@ -742,7 +742,7 @@ func (c *Client) CreateAlert(machineID string, alertList []*models.Alert) ([]str
|
|||
if machineID != "" {
|
||||
owner, err = c.QueryMachineByID(machineID)
|
||||
if err != nil {
|
||||
if errors.Cause(err) != UserNotExists {
|
||||
if !errors.Is(err, UserNotExists) {
|
||||
return nil, fmt.Errorf("machine '%s': %w", machineID, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue