Skip to content

Commit 161c5de

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Fix missing await
1 parent 7d3e403 commit 161c5de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/ql-vscode/src/variant-analysis/view-autofixes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export async function viewAutofixesForVariantAnalysisResults(
5050
await withProgress(
5151
async (progress: ProgressCallback) => {
5252
// Get the path to the local autofix installation.
53-
const localAutofixPath = findLocalAutofix();
53+
const localAutofixPath = await findLocalAutofix();
5454

5555
// Get the variant analysis with the given id.
5656
const variantAnalysis = variantAnalyses.get(variantAnalysisId);
@@ -119,12 +119,12 @@ export async function viewAutofixesForVariantAnalysisResults(
119119
* @returns An object containing the local autofix path.
120120
* @throws Error if the AUTOFIX_PATH environment variable is not set or the path does not exist.
121121
*/
122-
function findLocalAutofix(): string {
122+
async function findLocalAutofix(): Promise<string> {
123123
const localAutofixPath = process.env.AUTOFIX_PATH;
124124
if (!localAutofixPath) {
125125
throw new Error("Path to local autofix installation not found.");
126126
}
127-
if (!pathExists(localAutofixPath)) {
127+
if (!(await pathExists(localAutofixPath))) {
128128
throw new Error(`Local autofix path ${localAutofixPath} does not exist.`);
129129
}
130130
return localAutofixPath;

0 commit comments

Comments
 (0)