Skip to content

Commit 14ddecf

Browse files
committed
Fix lint issue
1 parent ffdfc66 commit 14ddecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/configurations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ export class CppProperties {
15751575
result = result.slice(1, -1);
15761576
}
15771577
// On Windows, isAbsolute does not handle root paths without a slash, such as "C:"
1578-
const isWindowsRootPath: boolean = (process.platform === 'win32' && /^[a-zA-Z]:$/.test(result));
1578+
const isWindowsRootPath: boolean = process.platform === 'win32' && /^[a-zA-Z]:$/.test(result);
15791579
// Make sure all paths result to an absolute path.
15801580
// Do not add the root path to an unresolved env variable.
15811581
if (!isWindowsRootPath && !result.includes("env:") && !path.isAbsolute(result) && this.rootUri) {

0 commit comments

Comments
 (0)