From c7e5eb90cd6411a12c7bb7b6818a7e3ee5cec896 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 24 Nov 2025 13:47:00 +0800 Subject: Remove return value from `sign_vault_modified` function --- crates/vcs_data/src/data/local/vault_modified.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'crates/vcs_data') diff --git a/crates/vcs_data/src/data/local/vault_modified.rs b/crates/vcs_data/src/data/local/vault_modified.rs index 125fb92..563d11f 100644 --- a/crates/vcs_data/src/data/local/vault_modified.rs +++ b/crates/vcs_data/src/data/local/vault_modified.rs @@ -17,17 +17,14 @@ pub async fn check_vault_modified() -> bool { matches!(contents.trim().to_lowercase().as_str(), "true") } -pub async fn sign_vault_modified(modified: bool) -> bool { +pub async fn sign_vault_modified(modified: bool) { let Some(current_dir) = current_local_path() else { - return false; + return; }; let record_file = current_dir.join(CLIENT_FILE_VAULT_MODIFIED); let contents = if modified { "true" } else { "false" }; - match tokio::fs::write(&record_file, contents).await { - Ok(_) => true, - Err(_) => false, - } + let _ = tokio::fs::write(&record_file, contents).await; } -- cgit