Skip to content

Commit

Permalink
fix: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sagittarius-a committed Aug 3, 2021
1 parent 081c554 commit aff9973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zellij-server/src/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl Screen {
}
pub fn toggle_tab(&mut self) {
let active_tab_index = self.active_tab_index.unwrap();
if let Some(_) = self.previous_active_tab_index {
if self.previous_active_tab_index.is_some() {
let position = self.get_previous_tab().unwrap().position;
self.go_to_tab(position + 1);
}
Expand Down

0 comments on commit aff9973

Please sign in to comment.