From 435318cf1dccb0e67bf541d6ab49b366f268c94a Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Thu, 21 Aug 2025 21:18:29 +0800 Subject: [PATCH] fix: simplify return statements in updateProxy method for clarity --- src-tauri/src/ipc/general.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/ipc/general.rs b/src-tauri/src/ipc/general.rs index 19290a06..adbfbf8e 100644 --- a/src-tauri/src/ipc/general.rs +++ b/src-tauri/src/ipc/general.rs @@ -295,7 +295,7 @@ impl IpcManager { }); match self.send_request("PUT", &url, Some(&payload)).await { - Ok(_) => return Ok(()), + Ok(_) => Ok(()), Err(e) => { logging!( error, @@ -304,7 +304,7 @@ impl IpcManager { "IPC: updateProxy encountered error: {} (ignored, always returning true)", e ); - return Ok(()); + Ok(()) } } }