Skip to content

Commit a567547

Browse files
Tanya-SolyanikLeafShi1
authored andcommitted
Re-enable IDE0059 for a "reference-like" type (dotnet#13042)
Fixes dotnet#12997 Re-enable IDE0059 for a "reference-like" type, as our SDK now has the fix for this analyzer.
1 parent 61778d6 commit a567547

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/System.Private.Windows.Core/src/System/SpanHelpers.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ public static void CopyAndTerminate(this ReadOnlySpan<char> source, Span<char> d
2222
source.CopyTo(destination);
2323

2424
// Null terminate the string
25-
#pragma warning disable IDE0059 // Unnecessary assignment of a value
2625
destination[source.Length] = '\0';
27-
#pragma warning restore IDE0059
2826
}
2927

3028
/// <summary>

0 commit comments

Comments
 (0)