From eb8d83df6eac2a5217b243c017a5f2aaea80ce4e Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Tue, 30 Dec 2025 12:08:53 -0800 Subject: [PATCH] fix: improve readability of environment variable retrieval in indexing harness Refactored the environment variable retrieval logic for Windows to enhance clarity by adding additional line breaks. This change maintains the existing functionality while making the code easier to read and understand. --- core/tests/helpers/indexing_harness.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/tests/helpers/indexing_harness.rs b/core/tests/helpers/indexing_harness.rs index 6be87ef5b..5398de646 100644 --- a/core/tests/helpers/indexing_harness.rs +++ b/core/tests/helpers/indexing_harness.rs @@ -53,7 +53,9 @@ impl IndexingHarnessBuilder { // Use home directory for proper filesystem watcher support on macOS // On Windows, use USERPROFILE; on Unix, use HOME let home = if cfg!(windows) { - std::env::var("USERPROFILE").unwrap_or_else(|_| std::env::var("TEMP").unwrap_or_else(|_| "C:\\temp".to_string())) + std::env::var("USERPROFILE").unwrap_or_else(|_| { + std::env::var("TEMP").unwrap_or_else(|_| "C:\\temp".to_string()) + }) } else { std::env::var("HOME").unwrap_or_else(|_| "/tmp".to_string()) };