Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
  • Loading branch information
wojtekmaj and merceyz authored Jul 11, 2024
1 parent 6a1fb4d commit 373126a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/corepackUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export async function installVersion(installTarget: string, locator: Locator, {s

await fs.promises.mkdir(path.dirname(installFolder), {recursive: true});
try {
renameSafe(tmpFolder, installFolder);
await renameSafe(tmpFolder, installFolder);
} catch (err) {
if (
(err as nodeUtils.NodeError).code === `ENOTEMPTY` ||
Expand Down

0 comments on commit 373126a

Please sign in to comment.