mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +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() {
|
match ors.len() {
|
||||||
|
0 => (),
|
||||||
1 => ands.push(ors.pop().unwrap()),
|
1 => ands.push(ors.pop().unwrap()),
|
||||||
n if n > 1 => ands.push(FilterCondition::Or(ors)),
|
_ => ands.push(FilterCondition::Or(ors)),
|
||||||
_ => (),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Either::Right(rule) => {
|
Either::Right(rule) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user