Skip to content

Commit

Permalink
tools: fix argv bug in find-inactive-tsc.mjs
Browse files Browse the repository at this point in the history
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: #41394
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Zijian Liu <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
  • Loading branch information
Trott authored and targos committed Jan 14, 2022
1 parent b0f0ad1 commit 583f8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/find-inactive-tsc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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], {
Expand Down

0 comments on commit 583f8d9

Please sign in to comment.