Remove unused thenable

This commit is contained in:
Daniel García Aubert 2017-12-11 19:35:59 +01:00
parent 87c4848e19
commit 5bf4eba215

View File

@ -129,9 +129,8 @@ module.exports = class AggregationMapConfigAdapter {
context.aggregation.layers.push(aggregatedFormats);
});
return requestMapConfig;
callback(null, requestMapConfig);
})
.then(requestMapConfig => callback(null, requestMapConfig))
.catch(err => callback(err));
}