Replace nested conditional with guard clause (early return)
This commit is contained in:
parent
5bf4eba215
commit
06efe410ef
@ -197,15 +197,15 @@ module.exports = class AggregationMapConfigAdapter {
|
||||
}
|
||||
|
||||
_getAggregationMetadata (isVectorOnlyMapConfig, layer, adapted) {
|
||||
if (adapted) {
|
||||
if (isVectorOnlyMapConfig) {
|
||||
return { png: false, mvt: true };
|
||||
}
|
||||
|
||||
return { png: true, mvt: true };
|
||||
if (!adapted) {
|
||||
return { png: false, mvt: false };
|
||||
}
|
||||
|
||||
return { png: false, mvt: false };
|
||||
if (isVectorOnlyMapConfig) {
|
||||
return { png: false, mvt: true };
|
||||
}
|
||||
|
||||
return { png: true, mvt: true };
|
||||
}
|
||||
|
||||
_getAggregationColumns (aggregation) {
|
||||
|
Loading…
Reference in New Issue
Block a user