Skip to content

Commit

Permalink
remove if results.is_empty() conditional (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx authored Dec 8, 2024
1 parent 4c6f10c commit 50d55e3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,7 @@ pub async fn search_applications(
results.push(create_calc_entry(&query));
}

if results.is_empty()
&& web_search_config.enabled
&& !should_exclude_web_search(&query)
{
if web_search_config.enabled && !should_exclude_web_search(&query) {
results.push(create_web_search_entry(&query, &web_search_config));
}

Expand Down

0 comments on commit 50d55e3

Please sign in to comment.