From db6ab4a5912356b3f1b6c9ab6abd04dc69152a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Wed, 28 Mar 2018 13:52:45 +0200 Subject: [PATCH] let & const vars --- app/middlewares/error.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/middlewares/error.js b/app/middlewares/error.js index 45de6435..07e643ad 100644 --- a/app/middlewares/error.js +++ b/app/middlewares/error.js @@ -1,4 +1,4 @@ -var errorHandlerFactory = require('../services/error_handler_factory'); +const errorHandlerFactory = require('../services/error_handler_factory'); module.exports = function errorMiddleware() { return function error(err, req, res, next) { @@ -41,8 +41,7 @@ module.exports = function errorMiddleware() { }; function getStatusError(errorHandler, req) { - - var statusError = errorHandler.http_status; + let statusError = errorHandler.http_status; // JSONP has to return 200 status error if (req && req.query && req.query.callback) {