Remove local variable

This commit is contained in:
Daniel García Aubert 2017-12-12 11:10:12 +01:00
parent 85e7245a33
commit 2f68d658f0

View File

@ -40,8 +40,7 @@ module.exports = class AggregationMapConfigAdapter {
const layers = mapConfig.getLayers();
for (let index = 0; index < layers.length; index++) {
const layer = layers[index];
const { aggregation } = layer.options;
const { aggregation } = layers[index].options;
const aggregationColumns = this._getAggregationColumns(aggregation);
const layerColumns = mapConfig.getColumnsByLayer(index);
@ -53,7 +52,7 @@ module.exports = class AggregationMapConfigAdapter {
return true;
}
if (!this._haveSameColumns(aggregationColumns,layerColumns)) {
if (!this._haveSameColumns(aggregationColumns, layerColumns)) {
return true;
}
}