Indent fixes

This commit is contained in:
Sandro Santilli 2013-11-11 16:55:51 +01:00
parent bf340e684a
commit d7c82e7a51

View File

@ -379,7 +379,7 @@ module.exports = function(){
cartoData.authorize(req, this); cartoData.authorize(req, this);
}, },
function gatekeep(err, data){ function gatekeep(err, data){
if (req.profiler) req.profiler.done('cartoData.authorize'); if (req.profiler) req.profiler.done('cartoData.authorize');
if(err) throw err; if(err) throw err;
if(data === "0") throw new Error("Sorry, you are unauthorized (permission denied)"); if(data === "0") throw new Error("Sorry, you are unauthorized (permission denied)");
return data; return data;
@ -390,21 +390,21 @@ module.exports = function(){
cartoData.getDatabase(req, this); cartoData.getDatabase(req, this);
}, },
function getGeometryType(err, data){ function getGeometryType(err, data){
if (req.profiler) req.profiler.done('cartoData.getDatabase'); if (req.profiler) req.profiler.done('cartoData.getDatabase');
if (err) throw err; if (err) throw err;
_.extend(req.params, {dbname:data}); _.extend(req.params, {dbname:data});
cartoData.getGeometryType(req, this); cartoData.getGeometryType(req, this);
}, },
function finishSetup(err, data){ function finishSetup(err, data){
if (req.profiler) req.profiler.done('cartoData.getGeometryType'); if (req.profiler) req.profiler.done('cartoData.getGeometryType');
if ( err ) { callback(err, req); return; } if ( err ) { callback(err, req); return; }
if (!_.isNull(data)) if (!_.isNull(data))
_.extend(req.params, {geom_type: data}); _.extend(req.params, {geom_type: data});
that.addCacheChannel(req, function(err) { that.addCacheChannel(req, function(err) {
if (req.profiler) req.profiler.done('addCacheChannel'); if (req.profiler) req.profiler.done('addCacheChannel');
callback(err, req); callback(err, req);
}); });
} }