Improve naming for a method

This commit is contained in:
Daniel García Aubert 2017-12-11 19:17:32 +01:00
parent 8d42909eab
commit 6725025e1a

View File

@ -138,7 +138,7 @@ module.exports = class AggregationMapConfigAdapter {
_adaptLayer (connection, layer, index, isVectorOnlyMapConfig, mapConfig) {
return new Promise((resolve, reject) => {
this._checkLayerAggregationMetadata(connection, layer, index, isVectorOnlyMapConfig, (err, shouldAdapt) => {
this._shouldAdaptLayer(connection, layer, index, isVectorOnlyMapConfig, (err, shouldAdapt) => {
if (err) {
return reject(err);
}
@ -162,7 +162,7 @@ module.exports = class AggregationMapConfigAdapter {
});
}
_checkLayerAggregationMetadata (connection, layer, index, isVectorOnlyMapConfig, callback) {
_shouldAdaptLayer (connection, layer, index, isVectorOnlyMapConfig, callback) {
let shouldAdapt = false;
if (!isVectorOnlyMapConfig && !this._hasLayerAggregation(layer)) {