Skip to content

Commit

Permalink
Fix 0-length arguments when parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Discookie committed Feb 2, 2022
1 parent c51b4fe commit bf5299e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/executor/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class ExecutorBridge implements Disposable {

const ccArgumentsSetting = workspace.getConfiguration('codechecker.executor').get<string>('arguments');
const ccArguments = parse(ccArgumentsSetting ?? '')
.filter((entry) => typeof entry === 'string')
.filter((entry) => typeof entry === 'string' && entry.length > 0)
.map((entry) => replaceVariables(entry as string)!);

const ccThreads = workspace.getConfiguration('codechecker.executor').get<string>('threadCount');
Expand Down

0 comments on commit bf5299e

Please sign in to comment.