From 21b1a319ca9f36f693b3292edfb1263263e85398 Mon Sep 17 00:00:00 2001 From: Archi Date: Wed, 18 Oct 2023 10:35:44 +0200 Subject: [PATCH] Fix netf with new code --- ArchiSteamFarm/Steam/Bot.cs | 3 ++- Directory.Build.props | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/Steam/Bot.cs b/ArchiSteamFarm/Steam/Bot.cs index 1d50ae474740c..eef99fb6044f6 100644 --- a/ArchiSteamFarm/Steam/Bot.cs +++ b/ArchiSteamFarm/Steam/Bot.cs @@ -3075,7 +3075,8 @@ private async void OnLoggedOn(SteamUser.LoggedOnCallback callback) { ArchiWebHandler.OnVanityURLChanged(callback.VanityURL); - if (string.IsNullOrEmpty(callback.WebAPIUserNonce) || !await ArchiWebHandler.Init(SteamID, SteamClient.Universe, callback.WebAPIUserNonce, SteamParentalActive ? BotConfig.SteamParentalCode : null).ConfigureAwait(false)) { + // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework + if (string.IsNullOrEmpty(callback.WebAPIUserNonce) || !await ArchiWebHandler.Init(SteamID, SteamClient.Universe, callback.WebAPIUserNonce!, SteamParentalActive ? BotConfig.SteamParentalCode : null).ConfigureAwait(false)) { if (!await RefreshSession().ConfigureAwait(false)) { return; } diff --git a/Directory.Build.props b/Directory.Build.props index c2459de7a45a0..9fa2f9b8acc1a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 5.4.11.3 + 5.4.11.4