From 591ffc8ec7395ac9037785a68b6b3330583324b5 Mon Sep 17 00:00:00 2001 From: Adam Kaput Date: Sat, 19 Mar 2016 02:27:36 +0100 Subject: [PATCH] Fixed updateStat wasn't called. --- File.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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;