From 3cf17c8baba9e58e5f3298b764a24e063a05fe4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 1 May 2020 10:40:56 +0200 Subject: [PATCH] typo --- .../mapconfig/provider/named-map-provider.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/models/mapconfig/provider/named-map-provider.js b/lib/models/mapconfig/provider/named-map-provider.js index a131ce18..63516853 100644 --- a/lib/models/mapconfig/provider/named-map-provider.js +++ b/lib/models/mapconfig/provider/named-map-provider.js @@ -40,7 +40,7 @@ module.exports = class NamedMapMapConfigProvider extends BaseMapConfigProvider { this.authToken = authToken; this.params = params; - // FIXME: why is this different thah that: + // FIXME: why is this different than that: // this.cacheBuster = params.cache_buster || 0; // test: "should fail to use template from named map provider after template deletion" // check named-map-provider-cache invalidation @@ -98,17 +98,16 @@ module.exports = class NamedMapMapConfigProvider extends BaseMapConfigProvider { const { user, rendererParams } = this; - this.mapConfigAdapter.getMapConfig( - user, requestMapConfig, rendererParams, context, (err, mapConfig, stats = {}) => { - if (err) { - return callback(err); - } + this.mapConfigAdapter.getMapConfig(user, requestMapConfig, rendererParams, context, (err, mapConfig, stats = {}) => { + if (err) { + return callback(err); + } - this.mapConfig = (mapConfig === null) ? null : new MapConfig(mapConfig, context.datasource); - this.analysesResults = context.analysesResults || []; + this.mapConfig = (mapConfig === null) ? null : new MapConfig(mapConfig, context.datasource); + this.analysesResults = context.analysesResults || []; - return callback(null, this.mapConfig, this.rendererParams, this.context, stats); - }); + return callback(null, this.mapConfig, this.rendererParams, this.context, stats); + }); }); }); }