mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add using for Bing search source
This commit is contained in:
parent
971d374582
commit
919d5d51ab
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ namespace Flow.Launcher.Plugin.WebSearch.SuggestionSources
|
|||
JsonElement json;
|
||||
try
|
||||
{
|
||||
json = (await JsonDocument.ParseAsync(resultStream)).RootElement.GetProperty("AS");
|
||||
using (resultStream)
|
||||
json = (await JsonDocument.ParseAsync(resultStream)).RootElement.GetProperty("AS");
|
||||
}
|
||||
catch (JsonException e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue