Remove unused argument

This commit is contained in:
Daniel García Aubert 2017-12-11 19:18:29 +01:00
parent 6725025e1a
commit 3f075ca432

View File

@ -138,7 +138,7 @@ module.exports = class AggregationMapConfigAdapter {
_adaptLayer (connection, layer, index, isVectorOnlyMapConfig, mapConfig) { _adaptLayer (connection, layer, index, isVectorOnlyMapConfig, mapConfig) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this._shouldAdaptLayer(connection, layer, index, isVectorOnlyMapConfig, (err, shouldAdapt) => { this._shouldAdaptLayer(connection, layer, isVectorOnlyMapConfig, (err, shouldAdapt) => {
if (err) { if (err) {
return reject(err); return reject(err);
} }
@ -162,7 +162,7 @@ module.exports = class AggregationMapConfigAdapter {
}); });
} }
_shouldAdaptLayer (connection, layer, index, isVectorOnlyMapConfig, callback) { _shouldAdaptLayer (connection, layer, isVectorOnlyMapConfig, callback) {
let shouldAdapt = false; let shouldAdapt = false;
if (!isVectorOnlyMapConfig && !this._hasLayerAggregation(layer)) { if (!isVectorOnlyMapConfig && !this._hasLayerAggregation(layer)) {
@ -182,7 +182,6 @@ module.exports = class AggregationMapConfigAdapter {
layer.options.aggregation.threshold : layer.options.aggregation.threshold :
1e5; 1e5;
if (estimatedFeatureCount < threshold) { if (estimatedFeatureCount < threshold) {
return callback(null, shouldAdapt); return callback(null, shouldAdapt);
} }