Skip to content

Commit

Permalink
Drop usage of Humanizer in descriptors ctor
Browse files Browse the repository at this point in the history
In most cases, we won't even need to load humanizer at all, so avoid that early load.
  • Loading branch information
kzu committed Jul 10, 2024
1 parent fb3353a commit 8ce2ffb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions samples/dotnet/SponsorLink/DiagnosticsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.IO;
using System.Linq;
using Humanizer;
using Humanizer.Localisation;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using static Devlooped.Sponsors.SponsorLink;
Expand Down Expand Up @@ -195,7 +194,7 @@ SponsorStatus GetOrSetStatus(Func<ImmutableArray<AdditionalText>> getAdditionalF
DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: string.Format(CultureInfo.CurrentCulture, Resources.Unknown_Description,
sponsorable.Humanize(x => $"https://github.com/sponsors/{x}"),
string.Join(", ", sponsorable.Select(x => $"https://github.com/sponsors/{x}")),
string.Join(" ", sponsorable)),
helpLinkUri: "https://github.com/devlooped#sponsorlink",
WellKnownDiagnosticTags.NotConfigurable);
Expand Down

0 comments on commit 8ce2ffb

Please sign in to comment.