Skip to content

Commit e34514f

Browse files
committed
remove parseInt since its handled by maxCacheSizeGB
1 parent 3694c6c commit e34514f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/download-manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ class DownloadManager {
142142
}
143143

144144
async _shouldCleanCache({ downloadedCacheSizeGB, alwaysCleanCache, maxCacheSizeGB, totalSizeGB, downloadDirStats }) {
145-
if (parseInt(maxCacheSizeGB) === 0 || alwaysCleanCache) {
145+
if (maxCacheSizeGB === 0 || alwaysCleanCache) {
146146
return true;
147147
}
148-
if (parseInt(maxCacheSizeGB) === -1) {
148+
if (maxCacheSizeGB === -1) {
149149
return false;
150150
}
151151

0 commit comments

Comments
 (0)