aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/history.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-05 10:30:07 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-05 10:30:07 +0300
commitbef501cdf7c5239f082a2456043fcb0e982c8049 (patch)
tree9fc1a15604fd20ea7d895619dec2be67046e5411 /interface/js/app/history.js
parent104eebf96028fd7bfee37fec077c6a5346304673 (diff)
downloadrspamd-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.js8
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;
}
});
}