diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-05 10:30:07 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-05 10:30:07 +0300 |
commit | bef501cdf7c5239f082a2456043fcb0e982c8049 (patch) | |
tree | 9fc1a15604fd20ea7d895619dec2be67046e5411 /interface/js/app/history.js | |
parent | 104eebf96028fd7bfee37fec077c6a5346304673 (diff) | |
download | rspamd-bef501cdf7c5239f082a2456043fcb0e982c8049.tar.gz rspamd-bef501cdf7c5239f082a2456043fcb0e982c8049.zip |
[Minor] JS: Simplify conditional
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r-- | interface/js/app/history.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index a30a2e54b..a17c237ba 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -610,11 +610,9 @@ define(["jquery", "footable", "humanize"], "after.ft.filtering": drawTooltips } }); - } else { - if (ft.history) { - ft.history.destroy(); - ft.history = undefined; - } + } else if (ft.history) { + ft.history.destroy(); + ft.history = undefined; } }); } |