Skip to content

Commit

Permalink
Removed stale comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pmiguel committed Feb 28, 2024
1 parent f55f6cf commit 6b56665
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/queues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ describe("wrangler", () => {
`);
});

it("should send send queue settings with delivery delay", async () => {
it("should send queue settings with delivery delay", async () => {
const requests = mockCreateRequest("testQueue", { delivery_delay: 10 });
await runWrangler("queues create testQueue --delivery-delay=10");
expect(std.out).toMatchInlineSnapshot(`
Expand Down
2 changes: 0 additions & 2 deletions packages/wrangler/src/queues/cli/commands/consumer/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ function createBody(
dead_letter_queue: args.deadLetterQueue,
};

// Workaround, Yargs does not play nicely with both --parameter and --no-parameter set.
// Negating a number parameter returns 0, making retryDelay an array with [0, <value>]
if (Array.isArray(args.retryDelay)) {
throw new CommandLineArgsError(
`Error: can't use more than a delay setting.`
Expand Down
2 changes: 0 additions & 2 deletions packages/wrangler/src/queues/cli/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ function createBody(
queue_name: args.name,
};

// Workaround, Yargs does not play nicely with both --parameter and --no-parameter set.
// Negating a number parameter returns 0, making deliveryDelay an array with [0, <value>]
if (Array.isArray(args.deliveryDelay)) {
throw new CommandLineArgsError(
`Error: can't use more than a delay setting.`
Expand Down

0 comments on commit 6b56665

Please sign in to comment.