From b233f18a0ff36810a8b0707011f108575d4c8541 Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Mon, 21 May 2018 15:43:23 +0200 Subject: [PATCH] Modernize code copied from SQL API --- .../backends/layer-stats/mapnik-layer-stats.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/cartodb/backends/layer-stats/mapnik-layer-stats.js b/lib/cartodb/backends/layer-stats/mapnik-layer-stats.js index 0390536b..ad415c55 100644 --- a/lib/cartodb/backends/layer-stats/mapnik-layer-stats.js +++ b/lib/cartodb/backends/layer-stats/mapnik-layer-stats.js @@ -260,19 +260,18 @@ function fieldType(cname) { // columns are returned as an object { columnName1: { type1: ...}, ..} // for consistency with SQL API -function formatResultFields(dbConnection, flds) { - flds = flds || []; - var nfields = {}; - for (var i=0; i