Skip to content

Commit

Permalink
remove parseInt since its handled by maxCacheSizeGB
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed Feb 4, 2025
1 parent 3694c6c commit e34514f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/download-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ class DownloadManager {
}

async _shouldCleanCache({ downloadedCacheSizeGB, alwaysCleanCache, maxCacheSizeGB, totalSizeGB, downloadDirStats }) {
if (parseInt(maxCacheSizeGB) === 0 || alwaysCleanCache) {
if (maxCacheSizeGB === 0 || alwaysCleanCache) {
return true;
}
if (parseInt(maxCacheSizeGB) === -1) {
if (maxCacheSizeGB === -1) {
return false;
}

Expand Down

0 comments on commit e34514f

Please sign in to comment.