Don't use arrow functions when there is no needed
This commit is contained in:
parent
49c97e2cf2
commit
d908ffdbca
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user