From 7009eb20f83e1202ade0eae51cc049fbaa469c69 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 24 Sep 2014 11:42:53 +0200 Subject: [PATCH] Check style fixes --- lib/cartodb/cartodb_windshaft.js | 14 +++++++------- lib/cartodb/server_options.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/cartodb/cartodb_windshaft.js b/lib/cartodb/cartodb_windshaft.js index c474afc1..216d8682 100644 --- a/lib/cartodb/cartodb_windshaft.js +++ b/lib/cartodb/cartodb_windshaft.js @@ -42,7 +42,7 @@ var CartodbWindshaft = function(serverOptions) { err = new Error("map state cannot be changed by unauthenticated request!"); } callback(err, req); - } + }; // This is for Templated maps // @@ -53,7 +53,7 @@ var CartodbWindshaft = function(serverOptions) { serverOptions.signedMaps = new SignedMaps(redisPool); var templateMapsOpts = { max_user_templates: global.environment.maxUserTemplates - } + }; var templateMaps = new TemplateMaps(redisPool, serverOptions.signedMaps, templateMapsOpts); // boot @@ -65,7 +65,7 @@ var CartodbWindshaft = function(serverOptions) { var version = wsversion(); version.windshaft_cartodb = require('../../package.json').version; return version; - } + }; var ws_sendResponse = ws.sendResponse; // GET routes for which we don't want to request any caching. @@ -203,7 +203,7 @@ var CartodbWindshaft = function(serverOptions) { ws.userByReq = function(req) { return serverOptions.userByReq(req); - } + }; // Add a template ws.post(template_baseurl, function(req, res) { @@ -446,7 +446,7 @@ var CartodbWindshaft = function(serverOptions) { function prepareResponse(err, tpl_ids){ if ( err ) throw err; // NOTE: might omit "cbduser" if == dbowner ... - var ids = _.map(tpl_ids, function(id) { return cdbuser + '@' + id; }) + var ids = _.map(tpl_ids, function(id) { return cdbuser + '@' + id; }); return { template_ids: ids }; }, function finish(err, response){ @@ -501,7 +501,7 @@ var CartodbWindshaft = function(serverOptions) { if ( tpl_id[0] && tpl_id[0] != cdbuser ) { var err = new Error('Cannot instanciate map of user "' + tpl_id[0] + '" on database of user "' - + cdbuser + '"') + + cdbuser + '"'); err.http_status = 403; callback(err); return; @@ -666,6 +666,6 @@ var CartodbWindshaft = function(serverOptions) { // ---- Template maps interface ends @} return ws; -} +}; module.exports = CartodbWindshaft; diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index a42152ad..df6f865b 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -3,7 +3,7 @@ var _ = require('underscore') , Cache = require('./cache_validator') , QueryTablesApi = require('./api/query_tables_api') , crypto = require('crypto') - , LZMA = require('lzma').LZMA; + , LZMA = require('lzma').LZMA ; // This is for backward compatibility with 1.3.3