chore: linting nursery

This commit is contained in:
Jack Wills
2022-08-04 13:01:16 +00:00
parent 1263662bd9
commit 1bd61d4ce8
8 changed files with 23 additions and 35 deletions
+1 -5
View File
@@ -259,11 +259,7 @@ impl AppData {
/// Get the title for log panel for selected container
/// will be "logs x/x"
pub fn get_log_title(&self) -> String {
if let Some(index) = self.get_selected_log_index() {
self.containers.items[index].logs.get_state_title()
} else {
String::from("")
}
self.get_selected_log_index().map_or_else(|| String::from(""), |index| self.containers.items[index].logs.get_state_title())
}
/// select next selected log line