Skip to content

Commit

Permalink
fix: nullish property accesses
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjozork committed Jul 23, 2022
1 parent 3b124f3 commit 3bfa47a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export class FragmenterInstaller extends (EventEmitter as new () => TypedEventEm

newInstallManifest.base = updateInfo.distributionManifest.base;
} catch (error) {
if (error.message.includes('Error while downloading') && !options.disableFallbackToFull) {
if (error.message.includes('Error while downloading') && !options?.disableFallbackToFull) {
logError(error.message);
return fullInstall();
}
Expand Down Expand Up @@ -379,7 +379,7 @@ export class FragmenterInstaller extends (EventEmitter as new () => TypedEventEm

return done(newInstallManifest);
} catch (error) {
if (error.message.includes('Error while downloading') && !options.disableFallbackToFull) {
if (error.message.includes('Error while downloading') && !options?.disableFallbackToFull) {
console.error(error.message);
return fullInstall();
}
Expand Down

0 comments on commit 3bfa47a

Please sign in to comment.