Skip to content

Commit 59a184b

Browse files
chore: run formatter
1 parent f0ff3e0 commit 59a184b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

crates/analytics/src/opensearch.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,13 @@ impl OpenSearchQueryBuilder {
507507
Ok(indexes
508508
.iter()
509509
.map(|index| {
510-
let updated_query = query.get("query")
511-
.and_then(|q| q.get("bool"))
512-
.and_then(|b| b.get("filter"))
513-
.and_then(|f| f.as_array())
514-
.map(|filters| self.replace_status_field(filters, index))
515-
.unwrap_or_default();
510+
let updated_query = query
511+
.get("query")
512+
.and_then(|q| q.get("bool"))
513+
.and_then(|b| b.get("filter"))
514+
.and_then(|f| f.as_array())
515+
.map(|filters| self.replace_status_field(filters, index))
516+
.unwrap_or_default();
516517

517518
let mut final_query = Map::new();
518519
final_query.insert("bool".to_string(), json!({ "filter": updated_query }));

0 commit comments

Comments
 (0)