fix: eslint failures fix

This commit is contained in:
JacksonLei123 2024-11-23 19:51:39 -05:00
parent 3560c50590
commit 90b675d8ca

View file

@ -40,9 +40,8 @@ export async function downloadBrowserWithProgressBar(title: string, browserDirec
for (let attempt = 1; attempt <= retryCount; ++attempt) {
debugLogger.log('install', `downloading ${title} - attempt #${attempt}`);
const url = downloadURLs[(attempt - 1) % downloadURLs.length];
if (!quiet) {
if (!quiet)
logPolitely(`Downloading ${title}` + colors.dim(` from ${url}`));
}
const { error } = await downloadBrowserWithProgressBarOutOfProcess(title, browserDirectory, url, zipPath, executablePath, downloadConnectionTimeout, quiet);
if (!error) {
debugLogger.log('install', `SUCCESS installing ${title}`);
@ -65,9 +64,8 @@ export async function downloadBrowserWithProgressBar(title: string, browserDirec
if (await existsAsync(zipPath))
await fs.promises.unlink(zipPath);
}
if (!quiet) {
if (!quiet)
logPolitely(`${title} downloaded to ${browserDirectory}`);
}
return true;
}