Skip to content

Commit 3d577f4

Browse files
committed
(build) Fix build error
In the previous commit, an attempt was made to fix a StyleCop warning, but this actually introduced a StyleCop error. A pragma has been introduced to override the warning that was attempting to be fixed.
1 parent 5d81460 commit 3d577f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitReleaseManager.Core/Extensions/StringExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ internal static class StringExtensions
1010
{
1111
public static string ReplaceMilestoneTitle(this string source, string milestoneKey, string milestoneTitle)
1212
{
13+
#pragma warning disable SA1001 // Commas should be spaced correctly
1314
var dict = new Dictionary<string, object>
1415
{
15-
{ milestoneKey.Trim('{','}'), milestoneTitle }
16+
{ milestoneKey.Trim('{','}'), milestoneTitle },
1617
};
18+
#pragma warning restore SA1001 // Commas should be spaced correctly
1719

1820
return source.ReplaceTemplate(dict);
1921
}

0 commit comments

Comments
 (0)