From 583f8d969af1135b827b71d92a8234e575f83041 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 6 Jan 2022 18:01:18 -0800 Subject: [PATCH] tools: fix argv bug in find-inactive-tsc.mjs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The argument supplied is expected to be text, not numeric. This wasn't causing issues with the automated job because it does not send an argument. It uses the default. PR-URL: https://github.com/nodejs/node/pull/41394 Reviewed-By: Michaël Zasso Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Anto Aravinth Reviewed-By: Tobias Nießen Reviewed-By: Zijian Liu Reviewed-By: Anatoli Papirovski --- tools/find-inactive-tsc.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/find-inactive-tsc.mjs b/tools/find-inactive-tsc.mjs index 741fb0c0b96c49..871ca9af1ed9d2 100755 --- a/tools/find-inactive-tsc.mjs +++ b/tools/find-inactive-tsc.mjs @@ -13,7 +13,7 @@ import fs from 'node:fs'; import path from 'node:path'; import readline from 'node:readline'; -const SINCE = +process.argv[2] || '3 months ago'; +const SINCE = process.argv[2] || '3 months ago'; async function runGitCommand(cmd, options = {}) { const childProcess = cp.spawn('/bin/sh', ['-c', cmd], {