Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chdanielmueller committed Nov 19, 2024
1 parent ae9dea3 commit a732508
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:security/recommended-legacy",
"plugin:sonarjs/recommended",
"plugin:sonarjs/recommended-legacy",
"plugin:unicorn/recommended",
"standard"
],
Expand Down
2 changes: 1 addition & 1 deletion src/amqp/subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class AMQPSubscriber {
// Create and bind queue
const channel = await this.getOrCreateChannel();
await channel.assertExchange(this.exchange.name, this.exchange.type, this.exchange.options);
const queue = await channel.assertQueue(this.queue.name || '', this.queue.options);
const queue = await channel.assertQueue(this.queue.name ?? '', this.queue.options);
await channel.bindQueue(queue.queue, this.exchange.name, routingKey, arguments_);

// Listen for messages
Expand Down

0 comments on commit a732508

Please sign in to comment.