diff --git a/File.js b/File.js index 5537d71..d7b7ab0 100644 --- a/File.js +++ b/File.js @@ -45,10 +45,6 @@ return; } - if (!self.jsdom) { - return; - } - if (!self.async) { updateStat(fs.statSync(self.path)); } else { @@ -56,6 +52,11 @@ updateStat(stat); }); } + + if (!self.jsdom) { + return; + } + } module.exports = File;