From ccdf08268980a3b5cad13f589ddea67e3146cc8d Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 3 Sep 2023 22:19:03 +0300 Subject: [PATCH] Clean up formatting --- DiscordChatExporter.Core/Discord/Data/Channel.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/DiscordChatExporter.Core/Discord/Data/Channel.cs b/DiscordChatExporter.Core/Discord/Data/Channel.cs index 97f01296..f411c401 100644 --- a/DiscordChatExporter.Core/Discord/Data/Channel.cs +++ b/DiscordChatExporter.Core/Discord/Data/Channel.cs @@ -67,16 +67,14 @@ public partial record Channel var name = // Guild channel json.GetPropertyOrNull("name")?.GetNonWhiteSpaceStringOrNull() - ?? // DM channel - json.GetPropertyOrNull("recipients") + ?? json.GetPropertyOrNull("recipients") ?.EnumerateArrayOrNull() ?.Select(User.Parse) .Select(u => u.DisplayName) .Pipe(s => string.Join(", ", s)) - ?? // Fallback - id.ToString(); + ?? id.ToString(); var position = positionHint ?? json.GetPropertyOrNull("position")?.GetInt32OrNull();