Replace nested conditional with guard clause
This commit is contained in:
parent
06efe410ef
commit
d405987a96
@ -81,9 +81,15 @@ module.exports = class AggregationMapConfigAdapter {
|
||||
|
||||
if (aggregation === 'false') {
|
||||
shouldAdapt = false;
|
||||
} else if (aggregation === 'true') {
|
||||
return shouldAdapt;
|
||||
}
|
||||
|
||||
if (aggregation === 'true') {
|
||||
shouldAdapt = true;
|
||||
} else if (aggregation === undefined) {
|
||||
return shouldAdapt;
|
||||
}
|
||||
|
||||
if (aggregation === undefined) {
|
||||
if (mapConfig.isVectorOnlyMapConfig()) {
|
||||
shouldAdapt = true;
|
||||
} else if (this._hasAnyLayerAggregation(requestMapConfig)){
|
||||
|
Loading…
Reference in New Issue
Block a user