Skip to content

Commit 6333c9e

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Remove checkoutDir if source root download fails
1 parent cb4bfbc commit 6333c9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ async function downloadPublicCommitSource(
577577
);
578578
}
579579
} catch (error) {
580+
await remove(checkoutDir);
580581
throw new Error(
581582
`Failed to download ${nwo} at ${sha}:. Reason: ${getErrorMessage(error)}`,
582583
);

0 commit comments

Comments
 (0)