Skip to content

Commit

Permalink
disable some R# warnings due to differences in frameworks (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik authored Feb 29, 2024
1 parent 0b03632 commit b977312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Humanizer/Bytes/ByteSize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ public static bool TryParse(string? s, IFormatProvider? formatProvider, out Byte
result = new();

// Get the index of the first non-digit character
// ReSharper disable once RedundantSuppressNullableWarningExpression
s = s!.TrimStart(); // Protect against leading spaces

int num;
Expand Down
1 change: 1 addition & 0 deletions src/Humanizer/StringHumanizeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ static string FromPascalCase(string input)
{
var result = string.Join(" ", PascalCaseWordPartsRegex
.Matches(input)
// ReSharper disable once RedundantEnumerableCastCall
.Cast<Match>()
.Select(match =>
{
Expand Down

0 comments on commit b977312

Please sign in to comment.