From 3df1fe4d3aad2898cd9f08d13401c3fd33bcc366 Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Wed, 2 Oct 2024 20:53:57 +0530 Subject: [PATCH] neatness --- scripts/setup-kind0.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/setup-kind0.ts b/scripts/setup-kind0.ts index 1ef06b9d..c62cc706 100644 --- a/scripts/setup-kind0.ts +++ b/scripts/setup-kind0.ts @@ -56,9 +56,7 @@ if (import.meta.main) { }) .then(async (blob) => await pngToIco(Buffer.from(await blob.arrayBuffer())) - .then(async (buf) => { - await Deno.writeFile('./public/favicon.ico', buf); - }) + .then(async (buf) => await Deno.writeFile('./public/favicon.ico', buf)) ); } catch (e) { die(1, `Error generating favicon from url ${image}: "${e}". Please check this or try again without --image.`);