run clippy

This commit is contained in:
nnyyxxxx 2024-11-13 03:46:11 -05:00
parent 80cd6e516b
commit 7a98581421
No known key found for this signature in database
GPG Key ID: 6038FFD6589902CB

View File

@ -509,11 +509,9 @@ impl AppState {
self.focus = Focus::List; self.focus = Focus::List;
if !self.multi_select { if !self.multi_select {
self.selected_commands.clear() self.selected_commands.clear()
} else { } else if let Some(node) = self.get_selected_node() {
if let Some(node) = self.get_selected_node() { if !node.multi_select {
if !node.multi_select { self.selected_commands.retain(|cmd| cmd.name != node.name);
self.selected_commands.retain(|cmd| cmd.name != node.name);
}
} }
} }
} }