Skip to content

Commit

Permalink
run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Nov 13, 2024
1 parent 80cd6e5 commit 7a98581
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tui/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,9 @@ impl AppState {
self.focus = Focus::List;
if !self.multi_select {
self.selected_commands.clear()
} else {
if let Some(node) = self.get_selected_node() {
if !node.multi_select {
self.selected_commands.retain(|cmd| cmd.name != node.name);
}
} else if let Some(node) = self.get_selected_node() {
if !node.multi_select {
self.selected_commands.retain(|cmd| cmd.name != node.name);
}
}
}
Expand Down

0 comments on commit 7a98581

Please sign in to comment.