From 2d016d4aba04eedd81aa43b14cc0d03b241b2b3c Mon Sep 17 00:00:00 2001 From: Reuben Tier Date: Fri, 13 Sep 2024 11:46:18 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/cli/info/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/cli/info/index.ts b/packages/astro/src/cli/info/index.ts index 3bb2216c0c94..9e9f06ea6068 100644 --- a/packages/astro/src/cli/info/index.ts +++ b/packages/astro/src/cli/info/index.ts @@ -55,7 +55,7 @@ export async function printInfo({ flags }: InfoOptions) { } async function copyToClipboard(text: string) { - text = text.trim() + text = text.trim(); const system = platform(); let command = ''; if (system === 'darwin') { @@ -66,8 +66,8 @@ async function copyToClipboard(text: string) { // Unix: check if a supported command is installed const unixCommands = [ ['xclip', '-sel clipboard -l 1'], - ['wl-copy', '"$0"'] - ] + ['wl-copy', '"$0"'], + ]; for (const [unixCommand, args] of unixCommands) { try { const output = execSync(`which ${unixCommand}`, { encoding: 'utf8', stdio: 'pipe' }); @@ -77,7 +77,7 @@ async function copyToClipboard(text: string) { } command = `${unixCommand} ${args}`; } catch { - // Failed to execute which. Skip! + // Failed to execute which. Skip! continue; } }