Browse Source

Whitespace

pull/229/head
Julian Simioni 9 years ago
parent
commit
fb0cf514e9
  1. 1
      controller/search.js
  2. 2
      sanitiser/_id.js
  3. 3
      sanitiser/_input.js
  4. 1
      sanitiser/_layers.js

1
controller/search.js

@ -1,4 +1,3 @@
var service = { search: require('../service/search') }; var service = { search: require('../service/search') };
function setup( backend, query ){ function setup( backend, query ){

2
sanitiser/_id.js

@ -5,7 +5,6 @@ var isObject = require('is-object');
// so, both type and id are required fields. // so, both type and id are required fields.
function sanitize( req ){ function sanitize( req ){
req.clean = req.clean || {}; req.clean = req.clean || {};
var params = req.query; var params = req.query;
var indeces = require('../query/indeces'); var indeces = require('../query/indeces');
@ -68,7 +67,6 @@ function sanitize( req ){
} }
return { 'error': false }; return { 'error': false };
} }
// export function // export function

3
sanitiser/_input.js

@ -3,7 +3,6 @@ var query_parse= require('../helper/query_parser');
// validate inputs, convert types and apply defaults // validate inputs, convert types and apply defaults
function sanitize( req ){ function sanitize( req ){
req.clean = req.clean || {}; req.clean = req.clean || {};
var params= req.query; var params= req.query;
@ -24,9 +23,7 @@ function sanitize( req ){
req.clean.parsed_input = query_parse(params.input); req.clean.parsed_input = query_parse(params.input);
return { 'error': false }; return { 'error': false };
} }
// export function // export function

1
sanitiser/_layers.js

@ -5,7 +5,6 @@ var isObject = require('is-object'),
// validate inputs, convert types and apply defaults // validate inputs, convert types and apply defaults
function sanitize( req ){ function sanitize( req ){
var clean = req.clean || {}; var clean = req.clean || {};
var params= req.query; var params= req.query;

Loading…
Cancel
Save