From 8ba2da0c93f295e408d33e798d2bf00c9c10e7d3 Mon Sep 17 00:00:00 2001 From: k2tzumi Date: Tue, 19 Nov 2024 09:02:18 +0900 Subject: [PATCH] Fix lint & code style --- perf-measures/bundle-check/scripts/check-bundle-size.ts | 4 ++-- perf-measures/type-check/scripts/process-results.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/perf-measures/bundle-check/scripts/check-bundle-size.ts b/perf-measures/bundle-check/scripts/check-bundle-size.ts index ac79405bc..646ce931f 100644 --- a/perf-measures/bundle-check/scripts/check-bundle-size.ts +++ b/perf-measures/bundle-check/scripts/check-bundle-size.ts @@ -1,7 +1,7 @@ -import * as os from 'os' -import * as path from 'path' import * as esbuild from 'esbuild' import * as fs from 'node:fs' +import * as os from 'os' +import * as path from 'path' async function main() { const tempDir = os.tmpdir() diff --git a/perf-measures/type-check/scripts/process-results.ts b/perf-measures/type-check/scripts/process-results.ts index 2c447492b..8c8ef95e1 100644 --- a/perf-measures/type-check/scripts/process-results.ts +++ b/perf-measures/type-check/scripts/process-results.ts @@ -14,7 +14,9 @@ async function main() { } const metrics = [] for await (const line of rl) { - if (!line || line.trim() === '') continue + if (!line || line.trim() === '') { + continue + } const [name, value] = line.split(':') const unitMatch = value?.trim().match(/^(\d+(\.\d+)?)([a-zA-Z]*)$/) if (unitMatch) {