Small refactor of isCached function in cdata.js

pull/3598/head
Woody 2024-01-07 23:14:24 +01:00
rodzic 21de9e938a
commit 74a5528f17
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 9872D7F5072789B2
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -50,10 +50,7 @@ function isCached(file) {
}
const stat = fs.statSync(file);
const cached = cache[file];
if (cached && cached.mtime >= stat.mtimeMs && cached.size == stat.size) {
return true;
}
return false;
return cached && cached.mtime == stat.mtimeMs && cached.size == stat.size;
}
/**