fix: lint errors after upgrading golangci-lint (#12368)

This commit is contained in:
Harshavardhana
2021-05-25 14:17:33 -07:00
committed by GitHub
parent ed4941a5f3
commit 4fd1378242
13 changed files with 26 additions and 50 deletions

View File

@@ -205,16 +205,12 @@ func (target *AMQPTarget) send(eventData event.Event, ch *amqp.Channel) error {
return err
}
if err := ch.Publish(target.args.Exchange, target.args.RoutingKey, target.args.Mandatory,
return ch.Publish(target.args.Exchange, target.args.RoutingKey, target.args.Mandatory,
target.args.Immediate, amqp.Publishing{
ContentType: "application/json",
DeliveryMode: target.args.DeliveryMode,
Body: data,
}); err != nil {
return err
}
return nil
})
}
// Save - saves the events to the store which will be replayed when the amqp connection is active.