From cfa1631a5cb258158e38b438408934571b538c6a Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Thu, 29 Feb 2024 17:46:33 +1000 Subject: [PATCH] disable some R# warnings due to differences in frameworks --- src/Humanizer/Bytes/ByteSize.cs | 1 + src/Humanizer/StringHumanizeExtensions.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Humanizer/Bytes/ByteSize.cs b/src/Humanizer/Bytes/ByteSize.cs index f9f6e35d3..897f050f1 100644 --- a/src/Humanizer/Bytes/ByteSize.cs +++ b/src/Humanizer/Bytes/ByteSize.cs @@ -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; diff --git a/src/Humanizer/StringHumanizeExtensions.cs b/src/Humanizer/StringHumanizeExtensions.cs index c220a7191..5da760deb 100644 --- a/src/Humanizer/StringHumanizeExtensions.cs +++ b/src/Humanizer/StringHumanizeExtensions.cs @@ -29,6 +29,7 @@ static string FromPascalCase(string input) { var result = string.Join(" ", PascalCaseWordPartsRegex .Matches(input) + // ReSharper disable once RedundantEnumerableCastCall .Cast() .Select(match => {