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.