diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-15 13:26:53 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-15 13:26:53 +0300 |
commit | ae91f7edb4a528d4a2ac53194b941b69ebfd0e2b (patch) | |
tree | bdb08d93fc81c3785bb7d3eb9fbafb7f173d883c /interface/js/app/history.js | |
parent | 89bfbd940c9f5d96de3dd661fc43f3fbd75ccc27 (diff) | |
download | rspamd-ae91f7edb4a528d4a2ac53194b941b69ebfd0e2b.tar.gz rspamd-ae91f7edb4a528d4a2ac53194b941b69ebfd0e2b.zip |
[Minor] Do not use identifiers before their declarations
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r-- | interface/js/app/history.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 8e34dff24..b1097528c 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -556,7 +556,7 @@ define(["jquery", "footable", "humanize"], if (checked_server === "All SERVERS") { rspamd.queryNeighbours("history", function (req_data) { - function differentVersions() { + function differentVersions(neighbours_data) { var dv = neighbours_data.some(function (e) { return e.version !== neighbours_data[0].version; }); @@ -570,7 +570,7 @@ define(["jquery", "footable", "humanize"], var neighbours_data = req_data .filter(function (d) { return d.status; }) // filter out unavailable neighbours .map(function (d) { return d.data; }); - if (neighbours_data.length && !differentVersions()) { + if (neighbours_data.length && !differentVersions(neighbours_data)) { var data = {}; if (neighbours_data[0].version) { data.rows = [].concat.apply([], neighbours_data |