Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sandor-trombitas committed Jul 22, 2024
1 parent 066fc1d commit 5380359
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions ts-binary-wrapper/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ export class WrapperConfiguration {
return this.buildDownloadUrl(baseUrl);
}



public getLocalLocation(): string {
const currentFolder = __dirname;
return path.join(currentFolder, this.binaryName);
Expand Down Expand Up @@ -342,11 +340,21 @@ export async function downloadWithBackup(
filenameShasum: string,
): Promise<Error | undefined> {
try {
const error = await downloadExecutable(downloadUrl, filename, filenameShasum);
const error = await downloadExecutable(
downloadUrl,
filename,
filenameShasum,
);
if (error) {
console.error(error);
console.error('Download failed! Trying to download from backup location...');
const backupError = await downloadExecutable(backupUrl, filename, filenameShasum);
console.error(
'Download failed! Trying to download from backup location...',
);
const backupError = await downloadExecutable(
backupUrl,
filename,
filenameShasum,
);

console.error(backupError);
return backupError;
Expand Down

0 comments on commit 5380359

Please sign in to comment.