From b3ae3d6de9ee0da0b237a825fafdd1c20b5fb45c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 31 Jul 2020 23:04:39 -0700 Subject: [PATCH] settings_panel_menu: Remove leftover angry debugging assertions. Apparently I forgot to remove these from commit 0b4483c8d272d098a915393f2bd9cde12586afb0 (#15920). Signed-off-by: Anders Kaseorg --- static/js/settings_panel_menu.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/static/js/settings_panel_menu.js b/static/js/settings_panel_menu.js index 1feaad20b0..9fb19bc296 100644 --- a/static/js/settings_panel_menu.js +++ b/static/js/settings_panel_menu.js @@ -15,9 +15,6 @@ class SettingsPanelMenu { this.main_elem = opts.main_elem; this.hash_prefix = opts.hash_prefix; this.curr_li = this.main_elem.children("li").eq(0); - if (this.curr_li === undefined) { - throw new Error("CURR_LI IS UNDEFINED RHJRWKTDSF"); - } this.main_elem.on("click", "li[data-section]", (e) => { const section = $(e.currentTarget).attr("data-section"); @@ -102,9 +99,6 @@ class SettingsPanelMenu { } this.curr_li = this.li_for_section(section); - if (this.curr_li === undefined) { - throw new Error("CURR_LI IS UNDEFINED WEJRGWKJ"); - } this.main_elem.children("li").removeClass("active"); this.curr_li.addClass("active");