diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-15 16:55:48 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-15 16:55:48 +0300 |
commit | 8b32cbde5fcffe085864de5dcd3daa35a9b01f7e (patch) | |
tree | 86fe6ce803911002054ab458bf629148ee3deaf5 /interface | |
parent | df63719060cc2fcf62da52b46c86a6397205a976 (diff) | |
download | rspamd-8b32cbde5fcffe085864de5dcd3daa35a9b01f7e.tar.gz rspamd-8b32cbde5fcffe085864de5dcd3daa35a9b01f7e.zip |
[Minor] Avoid using empty blocks
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/stats.js | 5 |
1 files changed, 2 insertions, 3 deletions
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 = "<div class=\"left\"><strong>" + item + "</strong>" + i + "</div>"; $(widget).appendTo(widgets); |