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

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

No files matched your search

+2 -6
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.