Skip to content

Commit

Permalink
chore(formatting): Fixed formatting mistakes (#1231)
Browse files Browse the repository at this point in the history
fixed formatting mistakes have sneaked into prod

Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and CommanderStorm authored Jun 18, 2024
1 parent 0b76ee5 commit 031b369
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/main-api/src/search/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ pub async fn search_handler(web::Query(args): web::Query<SearchQueryArgs>) -> Ht
debug!("searching returned {results_sections:?}");

if results_sections.len() != 2 {
error!("searching returned {len} sections, but expected 2", len=results_sections.len());
error!(
"searching returned {len} sections, but expected 2",
len = results_sections.len()
);
return HttpResponse::InternalServerError().body("Internal error");
}
let search_results = SearchResults {
Expand Down

0 comments on commit 031b369

Please sign in to comment.