diff --git a/ArchiSteamFarm/Helpers/CrossProcessFileBasedSemaphore.cs b/ArchiSteamFarm/Helpers/CrossProcessFileBasedSemaphore.cs index 3870a0c3b..56d3d9acf 100644 --- a/ArchiSteamFarm/Helpers/CrossProcessFileBasedSemaphore.cs +++ b/ArchiSteamFarm/Helpers/CrossProcessFileBasedSemaphore.cs @@ -178,7 +178,8 @@ internal sealed class CrossProcessFileBasedSemaphore : ICrossProcessSemaphore, I ASF.ArchiLogger.LogGenericDebuggingException(e); } } else if (OperatingSystem.IsFreeBSD() || OperatingSystem.IsLinux() || OperatingSystem.IsMacOS()) { - OS.UnixSetFileAccess(directoryPath, OS.EUnixPermission.Combined777); + // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework + OS.UnixSetFileAccess(directoryPath!, OS.EUnixPermission.Combined777); } } diff --git a/ArchiSteamFarm/NLog/Logging.cs b/ArchiSteamFarm/NLog/Logging.cs index 8d215088c..962601457 100644 --- a/ArchiSteamFarm/NLog/Logging.cs +++ b/ArchiSteamFarm/NLog/Logging.cs @@ -357,7 +357,8 @@ internal static class Logging { ulong steamOwnerID = ASF.GlobalConfig?.SteamOwnerID ?? GlobalConfig.DefaultSteamOwnerID; - string? response = await targetBot.Commands.Response(steamOwnerID, command).ConfigureAwait(false); + // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework + string? response = await targetBot.Commands.Response(steamOwnerID, command!).ConfigureAwait(false); if (string.IsNullOrEmpty(response)) { ASF.ArchiLogger.LogNullError(nameof(response));