remove step: last function

This commit is contained in:
Simon Martín 2018-07-30 17:59:06 +02:00
parent fe9f4939d5
commit 20c8d07a46

View File

@ -54,25 +54,26 @@ MapConfigOverviewsAdapter.prototype.getMapConfig = function (user, requestMapCon
filters,
function (err, stats) {
if (err) {
// next with error
return done(null, layer);
}
query_rewrite_data.filter_stats = stats;
// next
if (!_.isEmpty(metadata)) {
layer = _.extend({}, layer);
layer.options = _.extend({}, layer.options, { query_rewrite_data: query_rewrite_data });
}
return done(null, layer);
}
);
} else {
// next
}
function addDataToLayer(err) {
if (!err && !_.isEmpty(metadata)) {
if (!_.isEmpty(metadata)) {
layer = _.extend({}, layer);
layer.options = _.extend({}, layer.options, { query_rewrite_data: query_rewrite_data });
}
done(null, layer);
return done(null, layer);
}
}
});