Remove dirs fallback from config expansion

This commit is contained in:
Brian Mgrdichian
2026-02-02 17:01:28 -08:00
parent 3c309a1a24
commit 2ff344b523

View File

@@ -1,7 +1,6 @@
use std::collections::BTreeSet;
use std::collections::HashMap;
use dirs::home_dir;
use serde_json::json;
use toml::Value as TomlValue;
@@ -56,9 +55,6 @@ pub(crate) fn expand_key_for_matching_with_env(key: &str, env: &impl EnvProvider
if let Some(home) = env.get(home_var) {
return home;
}
if let Some(home) = home_dir() {
return home.to_string_lossy().to_string();
}
return key.to_string();
}
let mut warnings = Vec::new();