Do not use control flag

This commit is contained in:
Daniel García Aubert 2017-12-12 12:01:25 +01:00
parent e93fe13b41
commit eceffda87f

View File

@ -213,12 +213,6 @@ module.exports = class AggregationMapConfigAdapter {
typeof aggregation !== 'boolean' &&
typeof aggregation.columns === 'object';
let aggregationColumns = [];
if (hasAggregationColumns) {
aggregationColumns = Object.keys(aggregation.columns);
}
return aggregationColumns;
return hasAggregationColumns ? Object.keys(aggregation.columns) : [];
}
};