Permalink
Browse files

Replace arrow function to a basic one for compatibility

  • Loading branch information...
1 parent 8a7a0df commit e7cced41812807169942052c80b29f53a3610461 @Shinao committed on GitHub Oct 17, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 motion.js
View
@@ -31,7 +31,7 @@ module.exports = function (app, http) {
});
app.get('/doesFileExist/:filepath', function (req, res) {
- fs.access("public/" + req.params.filepath, fs.R_OK | fs.W_OK, (err) => {
+ fs.access("public/" + req.params.filepath, fs.R_OK | fs.W_OK, function(err) {
res.sendStatus(err ? 404 : 200);
})
});
@@ -58,4 +58,4 @@ module.exports = function (app, http) {
});
});
});
-}
+}

0 comments on commit e7cced4

Please sign in to comment.