diff --git a/lib/cartodb/controllers/layergroup.js b/lib/cartodb/controllers/layergroup.js index 94f2903e..b6b4d640 100644 --- a/lib/cartodb/controllers/layergroup.js +++ b/lib/cartodb/controllers/layergroup.js @@ -383,12 +383,6 @@ LayergroupController.prototype.getAffectedTables = function(user, dbName, layerg return tables; }, - function finish(err, tables) { - if(tables === undefined){ - callback(err); - }else{ - callback(err, tables); - } - } + callback ); };