Remove nested steps

This commit is contained in:
Daniel García Aubert 2018-03-06 17:01:51 +01:00
parent 4762aa0897
commit 2f011c3266

View File

@ -493,8 +493,7 @@ LayergroupController.prototype.getAffectedTables = function(user, dbName, layerg
}
var self = this;
step(
function extractSQL() {
step(
function loadFromStore() {
self.mapStore.load(layergroupId, this);
@ -514,9 +513,6 @@ LayergroupController.prototype.getAffectedTables = function(user, dbName, layerg
return queries.length ? queries.join(';') : null;
},
this
);
},
function findAffectedTables(err, sql) {
assert.ifError(err);