mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
refactor: inline project layer detection in hook discovery
This commit is contained in:
@@ -99,10 +99,6 @@ impl ConfigLayerEntry {
|
||||
self.disabled_reason.is_some()
|
||||
}
|
||||
|
||||
pub fn is_project_layer(&self) -> bool {
|
||||
matches!(self.name, ConfigLayerSource::Project { .. })
|
||||
}
|
||||
|
||||
pub fn raw_toml(&self) -> Option<&str> {
|
||||
self.raw_toml.as_deref()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user