From bef501cdf7c5239f082a2456043fcb0e982c8049 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Thu, 5 Jul 2018 10:30:07 +0300 Subject: [PATCH] [Minor] JS: Simplify conditional --- interface/js/app/history.js | 8 +++----- 1 file 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; } }); } -- 2.39.5