This commit is contained in:
Archi
2021-11-10 22:05:08 +01:00
parent 258ad17930
commit d1e8794fe3
2 changed files with 4 additions and 2 deletions

View File

@@ -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);
}
}

View File

@@ -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));