From 8b32cbde5fcffe085864de5dcd3daa35a9b01f7e Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 15 Jul 2018 16:55:48 +0300 Subject: [PATCH] [Minor] Avoid using empty blocks --- .eslintrc.json | 1 - interface/js/app/stats.js | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5181105f6..3e52ed7f8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -67,7 +67,6 @@ "max-statements-per-line": "off", "new-cap": "off", "no-else-return": "off", - "no-empty": "off", "no-inline-comments": "off", "no-invalid-this": "off", "no-negated-condition": "off", diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 56f3e7101..65e6f2772 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -67,9 +67,8 @@ define(["jquery", "d3pie", "humanize"], $.each(data, function (i, item) { var widget = ""; - if (i === "auth") {} - else if (i === "error") {} - else if (i === "version") { + if (i === "auth" || i === "error") { return true; } // Skip to the next iteration + if (i === "version") { widget = "
" + item + "" + i + "
"; $(widget).appendTo(widgets); -- 2.39.5