Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Vydolob <[email protected]>
  • Loading branch information
evidolob committed Mar 17, 2023
1 parent 180445f commit c89a220
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/install/win-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export class WinInstall extends BaseInstaller {
// user cancel installation
return false;
} else {
throw new Error(`${productName} setup has exit with unexpected code: ${runResult.exitCode}. StdOut: ${runResult.stdOut}. StdErr: ${runResult.stdErr}`);
throw new Error(
`${productName} setup has exit with unexpected code: ${runResult.exitCode}. StdOut: ${runResult.stdOut}. StdErr: ${runResult.stdErr}`,
);
}
}
progress.report({ increment: 80 });
Expand All @@ -67,7 +69,10 @@ export class WinInstall extends BaseInstaller {
} catch (err) {
console.error('Error during CRC install!');
console.error(err);
await extensionApi.window.showErrorMessage(`Unexpected error, during ${productName} installation: + ${err}`, 'OK');
await extensionApi.window.showErrorMessage(
`Unexpected error, during ${productName} installation: + ${err}`,
'OK',
);
return false;
} finally {
progress.report({ increment: -1 });
Expand Down Expand Up @@ -96,7 +101,7 @@ export class WinInstall extends BaseInstaller {
await fs.mkdir(outPath);
}

await new Promise<void>((resolve, reject) =>{
await new Promise<void>((resolve, reject) => {
zipper.unzip(zipPath, (err, res) => {
if (err) {
reject(err);
Expand Down

0 comments on commit c89a220

Please sign in to comment.