Lint fixes

This commit is contained in:
Javier Goizueta 2019-03-06 18:32:17 +01:00
parent 113b3728b1
commit c91b28ee92

View File

@ -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) {