From cb57dfb27d58a79d5dd8a211c16f7e708542bd49 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 8 Feb 2013 12:14:53 +0100 Subject: [PATCH] Fix async throws in getGeometryType, getInfoWindow and getMapMetadata --- lib/cartodb/carto_data.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/cartodb/carto_data.js b/lib/cartodb/carto_data.js index 83b9933b..9c9b03f4 100644 --- a/lib/cartodb/carto_data.js +++ b/lib/cartodb/carto_data.js @@ -126,7 +126,6 @@ module.exports = function() { that.retrieve(that.table_metadata_db, redisKey, 'privacy', this); }, function(err, data){ - //if (err) throw err; callback(err, data); } ); @@ -152,7 +151,6 @@ module.exports = function() { that.retrieve(that.table_metadata_db, redisKey, 'the_geom_type', this); }, function(err, data){ - if (err) throw err; callback(err, data); } ); @@ -172,7 +170,6 @@ module.exports = function() { that.retrieve(that.table_metadata_db, redisKey, 'infowindow', this); }, function(err, data){ - if (err) throw err; callback(err, data); } ); @@ -193,7 +190,6 @@ module.exports = function() { that.retrieve(that.table_metadata_db, redisKey, 'map_metadata', this); }, function(err, data){ - if (err) throw err; callback(err, data); } );