diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-09-15 18:32:40 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-09-15 18:32:40 +0300 |
commit | c73e007d787c4df0499cee55b0c03ccd39edc410 (patch) | |
tree | 3a657769c1c61451dea8700a72351131d00765f7 /interface/js/app/history.js | |
parent | 458642949a14fdabe5c85696f1ee23d50695d07f (diff) | |
download | rspamd-c73e007d787c4df0499cee55b0c03ccd39edc410.tar.gz rspamd-c73e007d787c4df0499cee55b0c03ccd39edc410.zip |
[Minor] Drop Crockford's `switch` indentation
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r-- | interface/js/app/history.js | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 16d4b49d2..fa80a10cd 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -62,30 +62,30 @@ define(["jquery", "footable", "humanize"], function preprocess_item(item) { for (var prop in item) { switch (prop) { - case "rcpt_mime": - case "rcpt_smtp": - escape_HTML_array(item[prop]); - break; - case "symbols": - Object.keys(item.symbols).map(function (key) { - var sym = item.symbols[key]; - if (!sym.name) { - sym.name = key; - } - sym.name = escapeHTML(sym.name); - if (sym.description) { - sym.description = escapeHTML(sym.description); - } + case "rcpt_mime": + case "rcpt_smtp": + escape_HTML_array(item[prop]); + break; + case "symbols": + Object.keys(item.symbols).map(function (key) { + var sym = item.symbols[key]; + if (!sym.name) { + sym.name = key; + } + sym.name = escapeHTML(sym.name); + if (sym.description) { + sym.description = escapeHTML(sym.description); + } - if (sym.options) { - escape_HTML_array(sym.options); + if (sym.options) { + escape_HTML_array(sym.options); + } + }); + break; + default: + if (typeof (item[prop]) === "string") { + item[prop] = escapeHTML(item[prop]); } - }); - break; - default: - if (typeof (item[prop]) === "string") { - item[prop] = escapeHTML(item[prop]); - } } } |