Browse Source

Whitespace

pull/204/head
Julian Simioni 9 years ago committed by Julian Simioni
parent
commit
4e74e9b681
  1. 6
      controller/doc.js
  2. 1
      sanitiser/doc.js
  3. 1
      test/unit/controller/doc.js

6
controller/doc.js

@ -1,14 +1,11 @@
var service = { mget: require('../service/mget') };
var geojsonify = require('../helper/geojsonify').search;
function setup( backend ){
// allow overriding of dependencies
backend = backend || require('../src/backend');
function controller( req, res, next ){
var query = req.clean.ids.map( function(id) {
return {
_index: 'pelias',
@ -18,7 +15,6 @@ function setup( backend ){
});
service.mget( backend, query, function( err, docs ){
// error handler
if( err ){ return next( err ); }
@ -30,9 +26,7 @@ function setup( backend ){
// respond
return res.status(200).json( geojson );
});
}
return controller;

1
sanitiser/doc.js

@ -1,4 +1,3 @@
var _sanitize = require('../sanitiser/_sanitize'),
sanitizers = {
id: require('../sanitiser/_id'),

1
test/unit/controller/doc.js

@ -1,4 +1,3 @@
var setup = require('../../../controller/doc'),
mockBackend = require('../mock/backend');

Loading…
Cancel
Save