Skip to content

Commit

Permalink
fix(#348): pr minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe BLIN authored and underfisk committed Jan 12, 2022
1 parent 5efedaf commit 417f887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rabbitmq/src/amqp/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ export class AmqpConnection {
let actualQueue: string;

if (createQueueIfNotExists) {
const queueName = subscriptionOptions.queue || '';
const queueOptions = subscriptionOptions.queueOptions || undefined;
const queueName = subscriptionOptions.queue ?? '';
const queueOptions = subscriptionOptions.queueOptions;
try {
const { queue } = await channel.assertQueue(queueName, queueOptions);
actualQueue = queue;
Expand Down

0 comments on commit 417f887

Please sign in to comment.