From c9331eb2ee63b787e5e6fea60c05b59a192a5623 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Fri, 2 Oct 2020 22:52:36 +0100 Subject: [PATCH] Fixed #3752 --- src/Ombi.Notifications/Agents/DiscordNotification.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ombi.Notifications/Agents/DiscordNotification.cs b/src/Ombi.Notifications/Agents/DiscordNotification.cs index e1f0e78c5..71d0e298c 100644 --- a/src/Ombi.Notifications/Agents/DiscordNotification.cs +++ b/src/Ombi.Notifications/Agents/DiscordNotification.cs @@ -113,7 +113,8 @@ protected override async Task Send(NotificationMessage model, DiscordNotificatio { fields.Add(new DiscordField { name = "Requested By", value = alias, inline = true }); } - } else + } + else { if (model.Data.TryGetValue("RequestedUser", out var requestedUser)) { @@ -131,7 +132,7 @@ protected override async Task Send(NotificationMessage model, DiscordNotificatio } } - var color = string.Empty; + string color = null; if (model.Data.TryGetValue("RequestStatus", out var status)) { if (status.HasValue())