refactor: match for filterCondition

This commit is contained in:
unvalley 2022-11-03 17:34:33 +09:00
parent 0d43ddbd85
commit 13175f2339

View File

@ -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) => {