mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-27 15:10:05 +01:00
refactor: match for filterCondition
This commit is contained in:
parent
0d43ddbd85
commit
13175f2339
@ -101,9 +101,9 @@ impl<'a> Filter<'a> {
|
||||
}
|
||||
|
||||
match ors.len() {
|
||||
0 => (),
|
||||
1 => ands.push(ors.pop().unwrap()),
|
||||
n if n > 1 => ands.push(FilterCondition::Or(ors)),
|
||||
_ => (),
|
||||
_ => ands.push(FilterCondition::Or(ors)),
|
||||
}
|
||||
}
|
||||
Either::Right(rule) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user