From 58182284b2f9fc1edeb8a8d66a35efb85b78764b Mon Sep 17 00:00:00 2001 From: Antoine Rybacki <15911822+Lifeismana@users.noreply.github.com> Date: Wed, 15 Nov 2023 18:00:17 +0100 Subject: [PATCH] code analysis fix --- DepotDownloader/Steam3Session.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DepotDownloader/Steam3Session.cs b/DepotDownloader/Steam3Session.cs index cd53e3a5..483ee061 100644 --- a/DepotDownloader/Steam3Session.cs +++ b/DepotDownloader/Steam3Session.cs @@ -118,7 +118,7 @@ namespace DepotDownloader if (details.Username != null) { // Reused what was done for sentryFile but does this has any use ? - var fi = new FileInfo(String.Format("{0}.guardDataFile", logonDetails.Username)); + var fi = new FileInfo(string.Format("{0}.guardDataFile", logonDetails.Username)); if (AccountSettingsStore.Instance.GuardData != null && !AccountSettingsStore.Instance.GuardData.ContainsKey(logonDetails.Username) && fi.Exists && fi.Length > 0) { var guardData = File.ReadAllText(fi.FullName); @@ -503,8 +503,7 @@ namespace DepotDownloader { try { - string guarddata = null; - _ = AccountSettingsStore.Instance.GuardData.TryGetValue(logonDetails.Username, out guarddata); + _ = AccountSettingsStore.Instance.GuardData.TryGetValue(logonDetails.Username, out var guarddata); authSession = await steamClient.Authentication.BeginAuthSessionViaCredentialsAsync(new SteamKit2.Authentication.AuthSessionDetails { Username = logonDetails.Username,