From 30503d281d358358e4e81cc991af1c99f8a7141d Mon Sep 17 00:00:00 2001 From: Ben Kennedy Date: Wed, 20 Nov 2024 13:51:44 +0000 Subject: [PATCH] attempt to fix weird ts error on GitHub action --- scripts/utils/checkGit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/checkGit.ts b/scripts/utils/checkGit.ts index ec3242d6..1d0b792a 100644 --- a/scripts/utils/checkGit.ts +++ b/scripts/utils/checkGit.ts @@ -30,7 +30,7 @@ export const getAllChangedFiles = (verboseLogs?: boolean): ChangedFilesDetails[] const matches = /^(A|C|D|M|R|T|U|X|B)\s+(.*)$/.exec(line); if (!matches) return null; return { type: matches[1] as GitChangeType, path: matches[2] }; - }).filter((change) => change !== null); + }).filter((change) => change != null); }; /**