Skip to content

Commit d06cb3d

Browse files
Cleanup.
1 parent 649148e commit d06cb3d

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Benchmarks/EnumParseTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public bool IgnoreCase
5151
}
5252
}
5353

54-
static readonly string[] ValidValues = new string[] { nameof(Greek.Alpha), nameof(Greek.Epsilon), nameof(Greek.Phi), nameof(Greek.Beta), nameof(Greek.Gamma) };
55-
static readonly string[] InvalidValues = new string[] { "Apple", "Orange", "Pineapple", "Grapefruit", "Lemon" };
54+
static readonly string[] ValidValues = [nameof(Greek.Alpha), nameof(Greek.Epsilon), nameof(Greek.Phi), nameof(Greek.Beta), nameof(Greek.Gamma)];
55+
static readonly string[] InvalidValues = ["Apple", "Orange", "Pineapple", "Grapefruit", "Lemon"];
5656

5757
// To avoid branching overhead when benchmarking.
5858
abstract class Tests

Source/StringBuilderHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace Open.Text;
99
/// <summary>
1010
/// Allows for easy conversion from a string to a <see cref="StringBuilder"/> by declaring the type as <see cref="StringBuilderHelper"/>.
1111
/// </summary>
12-
1312
[SuppressMessage("Usage", "CA2225:Operator overloads have named alternates", Justification = "<Pending>")]
1413
public class StringBuilderHelper(StringBuilder? sb = default)
1514
{
@@ -106,7 +105,6 @@ public static StringBuilderHelper Add(StringBuilderHelper helper, string charact
106105
return helper;
107106
}
108107

109-
110108
/// <summary>
111109
/// Creates a new <see cref="StringBuilderHelper"/> instance beginning with the specified <paramref name="sequence"/>.
112110
/// </summary>

0 commit comments

Comments
 (0)