mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09: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: 8847079d8a
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())
|
if (!suggestion.is_object())
|
||||||
return Error::from_string_literal("Invalid JSON, expected value to be an 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);
|
results.append(*value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue