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 <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
  • Loading branch information
Trott authored and danielleadams committed Feb 1, 2022
1 parent c49a651 commit 2bc381e
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 2bc381e

Please sign in to comment.