]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] JS: Simplify conditional
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 5 Jul 2018 07:30:07 +0000 (10:30 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 5 Jul 2018 07:30:07 +0000 (10:30 +0300)
interface/js/app/history.js

index a30a2e54bdb91a176bf39b03b7c501bb42d27106..a17c237ba1383fd8a35ffdd5fca4168bca92c69d 100644 (file)
@@ -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;
                     }
                 });
             }