remove raygun warning about mtime

pull/248/head
nightwing 2016-01-25 14:39:15 +04:00
rodzic 351af82d49
commit afd8cd354f
1 zmienionych plików z 4 dodań i 9 usunięć

Wyświetl plik

@ -574,7 +574,10 @@ define(function(require, exports, module) {
node.contenttype = stat.mime || util.getContentType(name);
node.status = "loaded";
}
if (typeof stat.mtime !== "number" && stat.mtime) {
// TODO fix localfs to not send date objects here
stat.mtime = +stat.mtime;
}
if (stat.size != undefined)
node.size = stat.size;
if (stat.mtime != undefined)
@ -594,14 +597,6 @@ define(function(require, exports, module) {
node.children = null;
if (typeof node.mtime !== "number" && node.mtime) {
// why Date ends up here?
reportError(new Error("Date in fs cache"), {
stat: stat,
mtime: node.mtime,
path: node.path
});
}
if (!updating) {
if (!modified.length)
modified.push(parent);