From 13175f2339789a21985c931bd1f848781f2c0c28 Mon Sep 17 00:00:00 2001 From: unvalley Date: Thu, 3 Nov 2022 17:34:33 +0900 Subject: [PATCH] refactor: match for filterCondition --- milli/src/search/facet/filter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/search/facet/filter.rs b/milli/src/search/facet/filter.rs index 40986fea0..5da1ba7fd 100644 --- a/milli/src/search/facet/filter.rs +++ b/milli/src/search/facet/filter.rs @@ -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) => {