From 4cac91ecb0cb3d38d946495a0171066197c70b87 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Mar 05 2018 16:24:21 +0000 Subject: Define empty array as [] This is recommended by jshint: they are identical in terms of functionality, but the square brackets are more commonly used and thus more readable. Merges https://pagure.io/pagure/pull-request/3033 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/static/issues_stats.js b/pagure/static/issues_stats.js index 4c1f9cf..6cdd497 100644 --- a/pagure/static/issues_stats.js +++ b/pagure/static/issues_stats.js @@ -44,7 +44,7 @@ function issues_history_stats_plot(url, _b, _s) { } d3.json(url, function(d) { - var _out = new Array(); + var _out = []; for (var _d in d.stats) { var t = {}; t.date = parseTime(_d.split('T', 1)[0]);