Fix async throws in getGeometryType, getInfoWindow and getMapMetadata

This commit is contained in:
Sandro Santilli 2013-02-08 12:14:53 +01:00
parent 0b56dd09d9
commit cb57dfb27d

View File

@ -126,7 +126,6 @@ module.exports = function() {
that.retrieve(that.table_metadata_db, redisKey, 'privacy', this); that.retrieve(that.table_metadata_db, redisKey, 'privacy', this);
}, },
function(err, data){ function(err, data){
//if (err) throw err;
callback(err, data); callback(err, data);
} }
); );
@ -152,7 +151,6 @@ module.exports = function() {
that.retrieve(that.table_metadata_db, redisKey, 'the_geom_type', this); that.retrieve(that.table_metadata_db, redisKey, 'the_geom_type', this);
}, },
function(err, data){ function(err, data){
if (err) throw err;
callback(err, data); callback(err, data);
} }
); );
@ -172,7 +170,6 @@ module.exports = function() {
that.retrieve(that.table_metadata_db, redisKey, 'infowindow', this); that.retrieve(that.table_metadata_db, redisKey, 'infowindow', this);
}, },
function(err, data){ function(err, data){
if (err) throw err;
callback(err, data); callback(err, data);
} }
); );
@ -193,7 +190,6 @@ module.exports = function() {
that.retrieve(that.table_metadata_db, redisKey, 'map_metadata', this); that.retrieve(that.table_metadata_db, redisKey, 'map_metadata', this);
}, },
function(err, data){ function(err, data){
if (err) throw err;
callback(err, data); callback(err, data);
} }
); );