Skip to content

Commit 8ce2ffb

Browse files
committed
Drop usage of Humanizer in descriptors ctor
In most cases, we won't even need to load humanizer at all, so avoid that early load.
1 parent fb3353a commit 8ce2ffb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

samples/dotnet/SponsorLink/DiagnosticsManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.IO;
99
using System.Linq;
1010
using Humanizer;
11-
using Humanizer.Localisation;
1211
using Microsoft.CodeAnalysis;
1312
using Microsoft.CodeAnalysis.Diagnostics;
1413
using static Devlooped.Sponsors.SponsorLink;
@@ -195,7 +194,7 @@ SponsorStatus GetOrSetStatus(Func<ImmutableArray<AdditionalText>> getAdditionalF
195194
DiagnosticSeverity.Warning,
196195
isEnabledByDefault: true,
197196
description: string.Format(CultureInfo.CurrentCulture, Resources.Unknown_Description,
198-
sponsorable.Humanize(x => $"https://github.com/sponsors/{x}"),
197+
string.Join(", ", sponsorable.Select(x => $"https://github.com/sponsors/{x}")),
199198
string.Join(" ", sponsorable)),
200199
helpLinkUri: "https://github.com/devlooped#sponsorlink",
201200
WellKnownDiagnosticTags.NotConfigurable);

0 commit comments

Comments
 (0)