From 69c60dae9c35ff2ae53cbd9b63a7eeb68ff71e97 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Mon, 11 Sep 2017 15:35:06 -0400 Subject: [PATCH] converted to const/let --- helper/geojsonify_place_details.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/helper/geojsonify_place_details.js b/helper/geojsonify_place_details.js index abf00dbc..33879c39 100644 --- a/helper/geojsonify_place_details.js +++ b/helper/geojsonify_place_details.js @@ -1,9 +1,11 @@ -var _ = require('lodash'); +'use strict'; + +const _ = require('lodash'); // Properties to be copied // If a property is identified as a single string, assume it should be presented as a string in response // If something other than string is desired, use the following structure: { name: 'category', type: 'array' } -var DETAILS_PROPS = [ +const DETAILS_PROPS = [ { name: 'housenumber', type: 'string' }, { name: 'street', type: 'string' }, { name: 'postalcode', type: 'string' }, @@ -67,7 +69,7 @@ function copyProperties( params, source, dst ) { } if ( source.hasOwnProperty( prop.name ) ) { - var value = null; + let value = null; switch (prop.type) { case 'string':