From d468b38494441d7eeabe7e029e184223f03487d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sea=20/=20=E7=A5=9E=E7=A7=98=E6=B5=B7?= <45450994+warmthsea@users.noreply.github.com> Date: Fri, 3 May 2024 21:43:47 +0800 Subject: [PATCH] chore(scripts): fix type error (#16743) * chore: fix type error * update build-table.ts Co-authored-by: btea <2356281422@qq.com> --------- Co-authored-by: btea <2356281422@qq.com> --- scripts/build-table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-table.ts b/scripts/build-table.ts index 19e711b040..b8df21eb4d 100644 --- a/scripts/build-table.ts +++ b/scripts/build-table.ts @@ -2,7 +2,7 @@ import fs from 'fs/promises' import path from 'path' async function main() { - const threshold = process.env.THRESHOLD || 40 + const threshold = Number(process.env.THRESHOLD) || 40 let output: string const diffOutput = await fs.readFile( path.resolve(__dirname, '..', 'tmp/diff.txt'),