From 399e56655108ba4815714836fc5559ec976a4567 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Thu, 17 Sep 2015 13:53:19 -0400 Subject: [PATCH] Remove unnecessary calls to function --- sanitiser/_ids.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sanitiser/_ids.js b/sanitiser/_ids.js index dae3a4b1..93ca7ab9 100644 --- a/sanitiser/_ids.js +++ b/sanitiser/_ids.js @@ -62,9 +62,7 @@ function sanitize( raw, clean ){ // basic format/ presence of ':' if(param_index === -1) { - messages.errors.push( - errorMessage(null, 'invalid: must be of the format type:id for ex: \'geoname:4163334\'') - ); + messages.errors.push( 'invalid: must be of the format type:id for ex: \'geoname:4163334\'' ); } // id text @@ -77,9 +75,7 @@ function sanitize( raw, clean ){ } // type text must be one of the types else if( !_.contains( types, type ) ){ - messages.errors.push( - errorMessage('type', type + ' is invalid. It must be one of these values - [' + types.join(', ') + ']') - ); + messages.errors.push( type + ' is invalid. It must be one of these values - [' + types.join(', ') + ']' ); } // add valid id to 'clean.ids' array else {