mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Remove dirs fallback from config expansion
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user