Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
RamIdeas committed Oct 16, 2024
1 parent 09a65e5 commit 3d20c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion packages/wrangler/src/core/register-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3d20c43

Please sign in to comment.