From 2953b87e5828b534093f23ae7ef827566ab9a063 Mon Sep 17 00:00:00 2001 From: yell0wsuit <5692900+yell0wsuit@users.noreply.github.com> Date: Thu, 18 Apr 2024 21:01:27 +0700 Subject: [PATCH] Fix IDE0063 --- src/Ryujinx/UI/Windows/ChangelogWindow.axaml.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Ryujinx/UI/Windows/ChangelogWindow.axaml.cs b/src/Ryujinx/UI/Windows/ChangelogWindow.axaml.cs index 4b6dbbc5d9..1992e59492 100644 --- a/src/Ryujinx/UI/Windows/ChangelogWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/ChangelogWindow.axaml.cs @@ -56,11 +56,9 @@ namespace Ryujinx.Ava.UI.Windows private static async Task FetchChangelogHtml() { - using (var client = new HttpClient()) - { - client.DefaultRequestHeaders.UserAgent.ParseAdd("Ryujinx-Updater/1.0.0"); - return await client.GetStringAsync("https://github.com/Ryujinx/Ryujinx/wiki/Changelog"); - } + using var client = new HttpClient(); + client.DefaultRequestHeaders.UserAgent.ParseAdd("Ryujinx-Updater/1.0.0"); + return await client.GetStringAsync("https://github.com/Ryujinx/Ryujinx/wiki/Changelog"); } private static string ParseChangelogForRecentVersions(string html, int count)