mirror of
https://github.com/openai/codex.git
synced 2026-05-02 04:11:39 +03:00
more cleanup
This commit is contained in:
@@ -85,12 +85,11 @@ pub(crate) fn validate_match_examples(rules: &[Rule], matches: &[Vec<String>]) -
|
||||
.collect();
|
||||
|
||||
if unmatched_examples.is_empty() {
|
||||
return Ok(());
|
||||
Ok(())
|
||||
} else {
|
||||
Err(Error::ExampleDidNotMatch {
|
||||
rules: rules.iter().map(|rule| format!("{rule:?}")).collect(),
|
||||
examples: unmatched_examples,
|
||||
})
|
||||
}
|
||||
|
||||
let rules: Vec<String> = rules.iter().map(|rule| format!("{rule:?}")).collect();
|
||||
Err(Error::ExampleDidNotMatch {
|
||||
rules,
|
||||
examples: unmatched_examples,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user