From d908ffdbca29cd18d35841c6b45fa10b6453823b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 9 Jan 2018 11:17:07 +0100 Subject: [PATCH] Don't use arrow functions when there is no needed --- lib/cartodb/controllers/named_maps.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/named_maps.js b/lib/cartodb/controllers/named_maps.js index 03008261..af281a02 100644 --- a/lib/cartodb/controllers/named_maps.js +++ b/lib/cartodb/controllers/named_maps.js @@ -333,7 +333,9 @@ NamedMapsController.prototype.getImage = function (label) { }.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 () { return function incrementMapViewsMiddleware(req, res, next) {