mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
UI/Qt: Invert check for DuckDuckGo autocomplete parse results
This commit is contained in:
parent
86a93b9b47
commit
8847079d8a
Notes:
github-actions[bot]
2025-03-20 09:51:43 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/8847079d8a4 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4008 Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ ErrorOr<Vector<String>> AutoComplete::parse_duckduckgo_autocomplete(Vector<JsonV
|
|||
if (!suggestion.is_object())
|
||||
return Error::from_string_literal("Invalid JSON, expected value to be an object");
|
||||
|
||||
if (auto value = suggestion.as_object().get_string("phrase"sv); !value.has_value())
|
||||
if (auto value = suggestion.as_object().get_string("phrase"sv); value.has_value())
|
||||
results.append(*value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue