mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 00:36:36 +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 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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user