Browse Source

[Minor] Avoid using empty blocks

tags/1.7.9
Alexander Moisseev 5 years ago
parent
commit
8b32cbde5f
2 changed files with 2 additions and 4 deletions
  1. 0
    1
      .eslintrc.json
  2. 2
    3
      interface/js/app/stats.js

+ 0
- 1
.eslintrc.json View File

@@ -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",

+ 2
- 3
interface/js/app/stats.js View File

@@ -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);

Loading…
Cancel
Save