From 3d20c43b23e52586bbefa8432209f96495fe1482 Mon Sep 17 00:00:00 2001 From: Rahul Sethi <5822355+RamIdeas@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:58:37 +0100 Subject: [PATCH] lints --- .../wrangler/src/__tests__/core/command-registration.test.ts | 2 -- packages/wrangler/src/core/register-commands.ts | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/wrangler/src/__tests__/core/command-registration.test.ts b/packages/wrangler/src/__tests__/core/command-registration.test.ts index 39815b4ed681..650efae95c61 100644 --- a/packages/wrangler/src/__tests__/core/command-registration.test.ts +++ b/packages/wrangler/src/__tests__/core/command-registration.test.ts @@ -191,8 +191,6 @@ describe("Command Registration", () => { wrangler pubsub 📮 Manage Pub/Sub brokers [private beta] wrangler dispatch-namespace 🏗️ Manage dispatch namespaces wrangler ai 🤖 Manage AI models - wrangler pipelines 🚰 Manage Worker Pipelines [open beta] - wrangler login 🔓 Login to Cloudflare wrangler logout 🚪 Logout from Cloudflare wrangler whoami 🕵️ Retrieve your user information diff --git a/packages/wrangler/src/core/register-commands.ts b/packages/wrangler/src/core/register-commands.ts index 7e33d03b6efb..d1ecfdffaab3 100644 --- a/packages/wrangler/src/core/register-commands.ts +++ b/packages/wrangler/src/core/register-commands.ts @@ -233,8 +233,9 @@ function resolveDefinitionChain( ) { const chain: InternalDefinition[] = []; const stringifyChain = (...extra: InternalDefinition[]) => - [...chain, ...extra].map((def) => `"${def.command}"`).join(" => "); + [...chain, ...extra].map(({ command }) => `"${command}"`).join(" => "); + // eslint-disable-next-line no-constant-condition while (true) { if (chain.includes(def)) { throw new CommandRegistrationError(