From e532b57369aa16b79b8c794cf248c307757c9fc4 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 27 Jun 2022 14:32:50 +0200 Subject: [PATCH] Thanks netf --- ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs b/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs index 988f35a72..83bb076d7 100644 --- a/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs +++ b/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs @@ -187,7 +187,8 @@ public sealed class ArchiWebHandler : IDisposable { } // This is actually client error with a reason, so it doesn't make sense to retry - throw new HttpRequestException(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, response.Content.Error)); + // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework + throw new HttpRequestException(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, response.Content!.Error)); } } } finally { @@ -440,7 +441,8 @@ public sealed class ArchiWebHandler : IDisposable { } // This is actually client error with a reason, so it doesn't make sense to retry - Bot.ArchiLogger.LogGenericWarning(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, response.Content.ErrorText)); + // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework + Bot.ArchiLogger.LogGenericWarning(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, response.Content!.ErrorText)); return (false, mobileTradeOfferIDs); } @@ -1269,7 +1271,8 @@ public sealed class ArchiWebHandler : IDisposable { } // This is actually client error with a reason, so it doesn't make sense to retry - Bot.ArchiLogger.LogGenericWarning(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, response.Content.ErrorText)); + // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework + Bot.ArchiLogger.LogGenericWarning(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, response.Content!.ErrorText)); return (false, false); }