fix: code lint

This commit is contained in:
huzibaca
2024-09-24 20:06:25 +08:00
parent 2ca7310baf
commit 4b234a3211
7 changed files with 24 additions and 32 deletions

View File

@@ -66,12 +66,10 @@ fn get_bypass() -> String {
#[cfg(not(target_os = "windows"))]
let bypass = if custom_bypass.is_empty() {
DEFAULT_BYPASS.to_string()
} else if use_default {
format!("{},{}", DEFAULT_BYPASS, custom_bypass)
} else {
if use_default {
format!("{},{}", DEFAULT_BYPASS, custom_bypass)
} else {
custom_bypass
}
custom_bypass
};
bypass