From ecbc7a28e769bb273556b56d8730121b5c8c185b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 15 Sep 2017 10:49:20 +0200 Subject: [PATCH] Declare constants with const keyword --- lib/cartodb/models/dataview/formula.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/models/dataview/formula.js b/lib/cartodb/models/dataview/formula.js index ba6725e3..efaeb0c6 100644 --- a/lib/cartodb/models/dataview/formula.js +++ b/lib/cartodb/models/dataview/formula.js @@ -30,7 +30,7 @@ const formulaQueryTpl = ctx => ` ${ctx._isFloatColumn && ctx._operation !== 'count' ? `${filterOutSpecialNumericValuesTpl(ctx)}` : ''} `; -var VALID_OPERATIONS = { +const VALID_OPERATIONS = { count: true, avg: true, sum: true, @@ -38,7 +38,7 @@ var VALID_OPERATIONS = { max: true }; -var TYPE = 'formula'; +const TYPE = 'formula'; /** {