Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d39eb2f authored by Daniel Jacob Chittoor's avatar Daniel Jacob Chittoor Committed by Jackeagle
Browse files

Remove unused quota variable

this.quota is assigned from navigator.storage.estimate() during init
but never read anywhere in the codebase. Remove the dead code.

Note: If storage quota checking is desired before downloading large
firmware files, this should be implemented as a proper pre-download
validation with user feedback, not just a stored variable.
parent d6e70fca
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ export class Downloader {

    this.db = await this.openDBStore();
    await this.clearDBStore();
    this.quota = await navigator.storage.estimate();
  }

  setLocalZip(file) {