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 Jul 23, 2021
1 parent a3697a9 commit 38f0c7a
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 @@ -432,7 +432,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 38f0c7a

Please sign in to comment.