From dd548c97f65c5a0b0ac5a854e03a70cd17b64811 Mon Sep 17 00:00:00 2001 From: Dominik Hardtke <1360135+dhardtke@users.noreply.github.com> Date: Thu, 17 Oct 2024 03:45:25 +0200 Subject: [PATCH] chore: fmt --- dev/generate-coverage-report.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/generate-coverage-report.ts b/dev/generate-coverage-report.ts index 359638d..39ef8ce 100644 --- a/dev/generate-coverage-report.ts +++ b/dev/generate-coverage-report.ts @@ -18,16 +18,16 @@ const coverage = new Deno.Command(Deno.execPath(), { args: ["coverage", "--unstable", SourceDir, "--lcov"], stdout: "piped", }); -const {stdout, success, code} = await coverage.output(); -if (success && code.code === 0) { +const { stdout, success, code } = await coverage.output(); +if (success && code === 0) { const tmpFile = await Deno.makeTempFile({ suffix: ".lcov", }); await Deno.writeFileSync(tmpFile, stdout); console.log(`Written ${tmpFile}`); - const {success, code} = (await new Deno.Command("genhtml", { + const { success, code } = await new Deno.Command("genhtml", { args: ["-o", OutputDir, tmpFile], - }).output()); + }).output(); if (success && code === 0) { await Deno.remove(tmpFile); console.log(`Generated ${OutputDir}`);