Skip to content

Commit 565ea0d

Browse files
committed
Use proper check for existence of search path
Fixes #499
1 parent 57ea215 commit 565ea0d

File tree

1 file changed

+1
-1
lines changed
  • extensions/ql-vscode/src

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ export class CodeQLCliServer implements Disposable {
604604
*/
605605
resolveQlpacks(additionalPacks: string[], searchPath?: string[]): Promise<QlpacksInfo> {
606606
const args = ['--additional-packs', additionalPacks.join(path.delimiter)];
607-
if (searchPath !== undefined) {
607+
if (searchPath?.length) {
608608
args.push('--search-path', path.join(...searchPath));
609609
}
610610

0 commit comments

Comments
 (0)