Skip to content

Commit

Permalink
Fixed #3752
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Oct 2, 2020
1 parent 10db861 commit c9331eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Ombi.Notifications/Agents/DiscordNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand All @@ -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())
Expand Down

0 comments on commit c9331eb

Please sign in to comment.