chore: linting warns removed

This commit is contained in:
Jack Wills
2022-08-04 13:29:09 +00:00
parent 0e11767db8
commit 258ada731b
4 changed files with 14 additions and 14 deletions
+5 -5
View File
@@ -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();