kopia lustrzana https://github.com/Aircoookie/WLED
Small refactor of isCached function in cdata.js
rodzic
21de9e938a
commit
74a5528f17
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Ładowanie…
Reference in New Issue