Browse Source

[Minor] Guard for-in

tags/1.8.0
Alexander Moisseev 5 years ago
parent
commit
ddcd7e0418
3 changed files with 3 additions and 1 deletions
  1. 1
    1
      .eslintrc.json
  2. 1
    0
      interface/js/app/history.js
  3. 1
    0
      interface/js/app/rspamd.js

+ 1
- 1
.eslintrc.json View File

@@ -28,6 +28,7 @@
"multiline-comment-style": "off",
"multiline-ternary": ["error", "always-multiline"],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
"no-continue": "off",
"no-extra-parens": ["error", "functions"],
"no-implicit-globals": "off",
"no-magic-numbers": "off",
@@ -60,7 +61,6 @@
"consistent-this": "off",
"func-style": "off",
"function-paren-newline": "off",
"guard-for-in": "off",
"line-comment-position": "off",
"max-len": "off",
"max-lines": "off",

+ 1
- 0
interface/js/app/history.js View File

@@ -61,6 +61,7 @@ define(["jquery", "footable", "humanize"],

function preprocess_item(item) {
for (var prop in item) {
if (!{}.hasOwnProperty.call(item, prop)) continue;
switch (prop) {
case "rcpt_mime":
case "rcpt_smtp":

+ 1
- 0
interface/js/app/rspamd.js View File

@@ -54,6 +54,7 @@ function ($, D3pie, visibility, NProgress, tab_stat, tab_graph, tab_config,

function stopTimers() {
for (var key in timer_id) {
if (!{}.hasOwnProperty.call(timer_id, key)) continue;
Visibility.stop(timer_id[key]);
}
}

Loading…
Cancel
Save