From 5bf4eba215b0a2d1a129a69d0ac5289749b79adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 11 Dec 2017 19:35:59 +0100 Subject: [PATCH] Remove unused thenable --- .../models/mapconfig/adapter/aggregation-mapconfig-adapter.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js b/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js index 91fcb5c1..b5bac9d6 100644 --- a/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js @@ -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)); }