From 2d71422be9fbd41362530dbab1b50337b9154d02 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Thu, 27 Jul 2017 09:34:51 -0400 Subject: [PATCH] add comments --- routes/v1.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes/v1.js b/routes/v1.js index 197563b8..ad42f4ab 100644 --- a/routes/v1.js +++ b/routes/v1.js @@ -207,6 +207,9 @@ function addRoutes(app, peliasConfig) { isAddressItParse ); + // get language adjustments if: + // - there's a response + // - theres's a lang parameter in req.clean const changeLanguageShouldExecute = all( hasResponseData, not(hasRequestErrors),