Don't use arrow functions when there is no needed

This commit is contained in:
Daniel García Aubert 2018-01-09 11:17:07 +01:00
parent 49c97e2cf2
commit d908ffdbca

View File

@ -333,7 +333,9 @@ NamedMapsController.prototype.getImage = function (label) {
}.bind(this); }.bind(this);
}; };
const incrementMapViewsError = ctx => `ERROR: failed to increment mapview count for user '${ctx.user}': ${ctx.err}`; function incrementMapViewsError (ctx) {
return `ERROR: failed to increment mapview count for user '${ctx.user}': ${ctx.err}`;
}
NamedMapsController.prototype.incrementMapViews = function () { NamedMapsController.prototype.incrementMapViews = function () {
return function incrementMapViewsMiddleware(req, res, next) { return function incrementMapViewsMiddleware(req, res, next) {