From: Alexander Moisseev Date: Sun, 15 Jul 2018 13:55:48 +0000 (+0300) Subject: [Minor] Avoid using empty blocks X-Git-Tag: 1.7.9~119^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b32cbde5fcffe085864de5dcd3daa35a9b01f7e;p=rspamd.git [Minor] Avoid using empty blocks --- 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);