remove step: last function refactor

This commit is contained in:
Simon Martín
2018-07-30 16:38:04 +02:00
parent c2577d1d25
commit cd08ad693f
+7 -7
View File
@@ -38,14 +38,14 @@ FilterStatsBackends.prototype.getFilterStats = function (username, unfiltered_qu
var query = analysisFilter.sql(unfiltered_query);
getEstimatedRows(self.pgQueryRunner, username, query, function (err, rows) {
if (err){
callback(err);
return;
return callback(err);
}
stats.filtered_rows = rows;
callback(null, stats);
});
}
callback(null, stats);
stats.filtered_rows = rows;
return callback(null, stats);
});
} else {
return callback(null, stats);
}
})
};