mirror of
https://github.com/wled/WLED.git
synced 2025-07-21 09:46:32 +00:00
Small refactor of isCached function in cdata.js
This commit is contained in:
parent
21de9e938a
commit
74a5528f17
@ -50,10 +50,7 @@ function isCached(file) {
|
|||||||
}
|
}
|
||||||
const stat = fs.statSync(file);
|
const stat = fs.statSync(file);
|
||||||
const cached = cache[file];
|
const cached = cache[file];
|
||||||
if (cached && cached.mtime >= stat.mtimeMs && cached.size == stat.size) {
|
return cached && cached.mtime == stat.mtimeMs && cached.size == stat.size;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user