From ef93eb5b9beb0d061db640cf8aad135310be78df Mon Sep 17 00:00:00 2001 From: pd241008 <142252602+pd241008@users.noreply.github.com> Date: Wed, 5 Aug 2026 13:31:26 +0530 Subject: [PATCH] fix: streamline variable usage in check_persistence function --- src/platform/windows.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 55d9150..f077b01 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -168,14 +168,13 @@ pub fn check_persistence(report: &mut Report, user_config: Option<&UserConfig>) if let Ok(out) = output { let text = String::from_utf8_lossy(&out.stdout); let mut current_task = String::new(); - let mut current_action = String::new(); for line in text.lines() { let line = line.trim(); if let Some(val) = line.strip_prefix("TaskName:") { current_task = val.trim().to_string(); } if let Some(val) = line.strip_prefix("Task To Run:") { - current_action = val.trim().to_string(); + let current_action = val.trim().to_string(); let lower = current_action.to_lowercase(); if task_patterns .iter()