chore: linting warns removed
This commit is contained in:
+5
-5
@@ -147,12 +147,12 @@ fn ui<B: Backend>(
|
||||
gui_state: &Arc<Mutex<GuiState>>,
|
||||
) {
|
||||
// set max height for container section, needs +4 to deal with docker commands list and borders
|
||||
let mut height = app_data.lock().get_container_len();
|
||||
if height < 12 {
|
||||
height += 4;
|
||||
let height = app_data.lock().get_container_len();
|
||||
let height = if height < 12 {
|
||||
(height + 4) as u16
|
||||
} else {
|
||||
height = 12;
|
||||
}
|
||||
12
|
||||
};
|
||||
|
||||
let column_widths = app_data.lock().get_width();
|
||||
let has_containers = !app_data.lock().containers.items.is_empty();
|
||||
|
||||
Reference in New Issue
Block a user