Skip to content

Commit

Permalink
Some refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jan 15, 2024
1 parent c76d484 commit 1381ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public override SlackMessage GetSlackEventNotification(PersistentEvent ev, Proje
string subject = $"[{project.Name}] A {notificationType}: *{GetSlackEventUrl(ev.Id, messageOrSource.Truncate(120))}*";
return new SlackMessage(subject)
{
Attachments = new List<SlackMessage.SlackAttachment> { attachment }
Attachments = [attachment]
};
}
}
2 changes: 1 addition & 1 deletion src/Exceptionless.Web/Controllers/EventController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ private async Task<ActionResult> GetSubmitEventAsync(string? projectId = null, i
ev.Geo = geo?.ToString();
break;
case "tags":
ev.Tags.AddRange(kvp.Value.SelectMany(t => t?.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>()).Distinct());
ev.Tags.AddRange(kvp.Value.SelectMany(t => t?.Split([","], StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>()).Distinct());
break;
case "identity":
identity = kvp.Value.FirstOrDefault();
Expand Down

0 comments on commit 1381ba9

Please sign in to comment.