1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-19 16:33:36 +03:00

fix: do not use ResultError#IsUserOrEnvironmentError

This commit is contained in:
Octol1ttle 2024-03-24 20:20:03 +05:00
parent ac8621a2ec
commit 0f86bb719d
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -1,5 +1,4 @@
using Microsoft.Extensions.Logging;
using Remora.Discord.Commands.Extensions;
using Remora.Results;
namespace Octobot.Extensions;
@ -19,7 +18,7 @@ public static class LoggerExtensions
/// <param name="message">The message to use if this result has failed.</param>
public static void LogResult(this ILogger logger, IResult result, string? message = "")
{
if (result.IsSuccess || result.Error.IsUserOrEnvironmentError())
if (result.IsSuccess)
{
return;
}