From 7d5e7b5b6b83ba9ab80f9be984c0d455b51b6502 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Mon, 27 Mar 2023 18:18:29 +0200 Subject: fix: Replace `<=0` with `.is_empty()` (#244) --- src-tauri/src/repair_and_verify/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-tauri/src/repair_and_verify') diff --git a/src-tauri/src/repair_and_verify/mod.rs b/src-tauri/src/repair_and_verify/mod.rs index 9d020f15..31b31040 100644 --- a/src-tauri/src/repair_and_verify/mod.rs +++ b/src-tauri/src/repair_and_verify/mod.rs @@ -84,7 +84,7 @@ pub fn get_log_list(game_install: GameInstall) -> Result } } - if log_files.len() > 0 { + if !log_files.is_empty() { Ok(log_files) } else { Err("No logs found".to_string()) -- cgit v1.2.3