mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
config: simplify override layer foundation
This commit is contained in:
@@ -111,14 +111,10 @@ impl ConfigLayerSource {
|
||||
ConfigLayerSource::Mdm { .. } => 0,
|
||||
ConfigLayerSource::System { .. } => 10,
|
||||
ConfigLayerSource::SystemOverride { .. } => 11,
|
||||
ConfigLayerSource::User { profile, .. } => {
|
||||
if profile.is_some() {
|
||||
21
|
||||
} else {
|
||||
20
|
||||
}
|
||||
}
|
||||
ConfigLayerSource::UserOverride { .. } => 20,
|
||||
ConfigLayerSource::User {
|
||||
profile: Some(_), ..
|
||||
} => 21,
|
||||
ConfigLayerSource::User { .. } | ConfigLayerSource::UserOverride { .. } => 20,
|
||||
ConfigLayerSource::Project { .. } | ConfigLayerSource::ProjectOverride { .. } => 25,
|
||||
ConfigLayerSource::SessionFlags => 30,
|
||||
ConfigLayerSource::LegacyManagedConfigTomlFromFile { .. } => 40,
|
||||
|
||||
Reference in New Issue
Block a user