Skip to content

Commit bdb17ec

Browse files
committed
some formating
1 parent 017e0f7 commit bdb17ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ async function runCppcheckOnFileXML(
195195

196196
// Resolve paths for arguments where applicable
197197
const argsParsed = processedArgs.split(" ").map((arg) => {
198-
if (pathVariableArgs.some((a) => { arg.startsWith(a);})
199-
&& looksLikePath(arg)
200-
) {
198+
const isPathArgument = pathVariableArgs.some(a => arg.startsWith(a));
199+
// Some arguments such as addon may be either a path or the name of a built in addon
200+
if (isPathArgument && looksLikePath(arg)) {
201201
const splitArg = arg.split('=');
202202
return `${splitArg[0]}=${resolvePath(splitArg[1])}`;
203203
}

0 commit comments

Comments
 (0)