Skip to content

Commit

Permalink
refactor: remove redundant local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgpinf committed Oct 31, 2024
1 parent fc8e742 commit 2ee3858
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wezterm-gui/src/termwindow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2326,9 +2326,8 @@ impl TermWindow {
}

fn show_tab_navigator(&mut self) {
let mux_window_id = self.mux_window_id;
let mux = Mux::get();
let active_tab_idx = match mux.get_window(mux_window_id) {
let active_tab_idx = match mux.get_window(self.mux_window_id) {
Some(mux_window) => mux_window.get_active_idx(),
None => return,
};
Expand Down

0 comments on commit 2ee3858

Please sign in to comment.