From 3bdf0888925ffa7ee278401b1abc022b19b216bb Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Thu, 8 Jun 2017 18:04:43 -0400 Subject: [PATCH] updated variable names for camel-case convention --- routes/v1.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/v1.js b/routes/v1.js index 9fb8f8d2..1449887f 100644 --- a/routes/v1.js +++ b/routes/v1.js @@ -98,7 +98,7 @@ function addRoutes(app, peliasConfig) { const isPlaceholderServiceEnabled = _.constant(placeholderConfiguration.isEnabled()); // fallback to coarse reverse when regular reverse didn't return anything - const coarse_reverse_should_execute = all( + const coarseReverseShouldExecute = all( isPipServiceEnabled, not(hasRequestErrors), not(hasResponseData) ); @@ -109,7 +109,7 @@ function addRoutes(app, peliasConfig) { // execute under the following conditions: // - there are no errors or data // - request is not coarse OR pip service is disabled - const non_coarse_reverse_should_execute = all( + const nonCoarseReverseShouldExecute = all( not(hasResponseDataOrRequestErrors), any( not(isCoarseReverse), @@ -197,8 +197,8 @@ function addRoutes(app, peliasConfig) { sanitizers.reverse.middleware, middleware.requestLanguage, middleware.calcSize(), - controllers.search(peliasConfig.api, esclient, queries.reverse, non_coarse_reverse_should_execute), - controllers.coarse_reverse(pipService, coarse_reverse_should_execute), + controllers.search(peliasConfig.api, esclient, queries.reverse, nonCoarseReverseShouldExecute), + controllers.coarse_reverse(pipService, coarseReverseShouldExecute), postProc.distances('point.'), // reverse confidence scoring depends on distance from origin // so it must be calculated first