From 864a4ee91a2c8f6f3ddd73cdef7076ac2edcf4a5 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Fri, 9 Jan 2026 20:38:56 -0500 Subject: [PATCH] chore: npm run format --- SharpbinV3.Client/src/routes/+page.svelte | 2 +- SharpbinV3.Client/src/routes/[id]/+page.server.ts | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/SharpbinV3.Client/src/routes/+page.svelte b/SharpbinV3.Client/src/routes/+page.svelte index 2850e3c..79dd881 100644 --- a/SharpbinV3.Client/src/routes/+page.svelte +++ b/SharpbinV3.Client/src/routes/+page.svelte @@ -252,7 +252,7 @@ {/if} {#if data.options?.requiresVerification && data.auth?.cf_turnstile_site_key}
diff --git a/SharpbinV3.Client/src/routes/[id]/+page.server.ts b/SharpbinV3.Client/src/routes/[id]/+page.server.ts index 0835c96..8acd3ba 100644 --- a/SharpbinV3.Client/src/routes/[id]/+page.server.ts +++ b/SharpbinV3.Client/src/routes/[id]/+page.server.ts @@ -33,16 +33,19 @@ export const load: PageServerLoad = async ({ params, fetch, url, cookies }) => { if (viewJson.success === true && viewJson.message !== 'View already recorded.') { pasteData.views += 1; } - } - else { - console.error(`Failed to increment view count for paste ${id}, status code ${viewed.status}: ${await viewed.text()}`); + } else { + console.error( + `Failed to increment view count for paste ${id}, status code ${viewed.status}: ${await viewed.text()}` + ); if (apiKey === '') { - console.error('The API key for internal requests is not set. Please configure it in the environment variables.'); + console.error( + 'The API key for internal requests is not set. Please configure it in the environment variables.' + ); } } const pasteContent = await fetch(`/api/paste/${id}/raw`); - const pasteOptions = await fetch('/api/paste/info'); + const pasteOptions = await fetch('/api/paste/info'); const options = await pasteOptions.json(); const content = await pasteContent.text();