From b2dd17c0df763103b19f839d853739bfd37c980f Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Wed, 28 Feb 2024 19:41:21 +0000 Subject: [PATCH] ci: fix type error in scan changes tool (#45119) * chore: fix type error in scan changes tool * chore: fix linting issue --- tools/code-analyzer/src/lib/scan-changes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/code-analyzer/src/lib/scan-changes.ts b/tools/code-analyzer/src/lib/scan-changes.ts index bb1c60dff3e..25c3a0fac3f 100644 --- a/tools/code-analyzer/src/lib/scan-changes.ts +++ b/tools/code-analyzer/src/lib/scan-changes.ts @@ -136,7 +136,7 @@ export const scanForChanges = async ( base, compareVersion, Logger.error, - [ 'tools', ...exclude ] + [ 'tools', ...( exclude ? exclude : [] ) ] ); // Only checkout the compare version if we're in CLI mode.