From: Alexander Moisseev Date: Thu, 5 Jul 2018 07:30:07 +0000 (+0300) Subject: [Minor] JS: Simplify conditional X-Git-Tag: 1.7.8~26^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bef501cdf7c5239f082a2456043fcb0e982c8049;p=rspamd.git [Minor] JS: Simplify conditional --- 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; } }); }