Skip to content

Commit

Permalink
quickwit: Remove wrong asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
tontinton committed Dec 6, 2024
1 parent c139fa2 commit ec74fd6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/quickwit_connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ fn filter_ast_to_query(ast: &FilterAst) -> Option<serde_json::Value> {
#[allow(unreachable_patterns)]
Some(match ast {
FilterAst::Or(filters) => {
assert!(!filters.is_empty());
json!({
"bool": {
"should": filters.iter()
Expand All @@ -250,7 +249,6 @@ fn filter_ast_to_query(ast: &FilterAst) -> Option<serde_json::Value> {
})
}
FilterAst::And(filters) => {
assert!(!filters.is_empty());
json!({
"bool": {
"must": filters.iter()
Expand Down

0 comments on commit ec74fd6

Please sign in to comment.