From ace5eedc33928c82210b879c95d27b5d1e60c74c Mon Sep 17 00:00:00 2001 From: fufesou Date: Sun, 22 Mar 2026 19:41:48 +0800 Subject: [PATCH] fix(password): remove unnecessary check Signed-off-by: fufesou --- src/config.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/config.rs b/src/config.rs index 09c91d833..8baaa8d9e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1276,17 +1276,6 @@ impl Config { salt: &str, ) -> crate::ResultType { let mut config = CONFIG.write().unwrap(); - - if storage.is_empty() { - if config.password.is_empty() { - return Ok(false); - } - config.password = String::new(); - config.store(); - Self::clear_trusted_devices(); - return Ok(true); - } - if config.password == storage && config.salt == salt { return Ok(false); }