From 22cbba1cba0d329e3e5a85a93623bda502bace59 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 19 May 2016 20:15:12 +0000 Subject: [PATCH] fix(maintenance): linting --- website/server/middlewares/api-v3/maintenanceMode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/server/middlewares/api-v3/maintenanceMode.js b/website/server/middlewares/api-v3/maintenanceMode.js index bbcc92ecc67..caea22c3da3 100644 --- a/website/server/middlewares/api-v3/maintenanceMode.js +++ b/website/server/middlewares/api-v3/maintenanceMode.js @@ -1,4 +1,4 @@ -import { getUserLanguage, } from './language'; +import { getUserLanguage } from './language'; import nconf from 'nconf'; const MAINTENANCE_MODE = nconf.get('MAINTENANCE_MODE'); @@ -6,7 +6,7 @@ const MAINTENANCE_MODE = nconf.get('MAINTENANCE_MODE'); module.exports = function maintenanceMode (req, res, next) { if (MAINTENANCE_MODE !== 'true') return next(); - getUserLanguage(req, res, function (err) { + getUserLanguage(req, res, function maintenanceMiddleware (err) { if (err) return next(err); const MAINTENANCE_START = nconf.get('MAINTENANCE_START'); @@ -29,7 +29,7 @@ module.exports = function maintenanceMode (req, res, next) { } } else { return res.status(503).send({ - error: 'Maintenance', + error: 'Maintenance', message: 'Server offline for maintenance.', }); }