In the following code, if autoDelete is false, the option is simply overwritten by options.ack.
autoDelete: options.autoDelete || ! (options.ack || options.acknowledge)
expected behavior:
if autoDelete is set to false, ack won't affect autoDelete.
options.autoDelete === undefined ? ! (options.ack || options.acknowledge) : options.autoDelete
https://github.com/mateodelnorte/servicebus/blob/959ef4f3fca0f69ad421917bf1726cc48ae56c0c/bus/rabbitmq/queue.js#L10
In the following code, if autoDelete is false, the option is simply overwritten by options.ack. autoDelete: options.autoDelete || ! (options.ack || options.acknowledge)
expected behavior:
if autoDelete is set to false, ack won't affect autoDelete.
options.autoDelete === undefined ? ! (options.ack || options.acknowledge) : options.autoDelete