From c91b28ee92310168291c3970440ab1bc1036c6d8 Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Wed, 6 Mar 2019 18:32:17 +0100 Subject: [PATCH] Lint fixes --- lib/cartodb/models/aggregation/aggregation-mapconfig.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cartodb/models/aggregation/aggregation-mapconfig.js b/lib/cartodb/models/aggregation/aggregation-mapconfig.js index 0b533acc..34b01859 100644 --- a/lib/cartodb/models/aggregation/aggregation-mapconfig.js +++ b/lib/cartodb/models/aggregation/aggregation-mapconfig.js @@ -110,7 +110,9 @@ module.exports = class AggregationMapConfig extends MapConfig { isAggregationLayer (index) { let hasAggregation = this.hasLayerAggregation(index); // for vector-only MapConfig are aggregated unless explicitly disabled - return hasAggregation || (this.isVectorOnlyMapConfig() && hasAggregation !== AggregationMapConfig.HAS_AGGREGATION_DISABLED); + return hasAggregation || ( + this.isVectorOnlyMapConfig() && hasAggregation !== AggregationMapConfig.HAS_AGGREGATION_DISABLED + ); } isAggregationMapConfig () { @@ -140,8 +142,6 @@ module.exports = class AggregationMapConfig extends MapConfig { return true; } return false; - - return aggregation !== undefined && (typeof aggregation === 'object' || typeof aggregation === 'boolean'); } getAggregation (index) {