From 7a9858142155af218a267eac63793bb48b375325 Mon Sep 17 00:00:00 2001 From: nnyyxxxx Date: Wed, 13 Nov 2024 03:46:11 -0500 Subject: [PATCH] run clippy --- tui/src/state.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tui/src/state.rs b/tui/src/state.rs index 7b02d405..2e56e13a 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -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); } } }