Skip to content

Commit ec6e4bc

Browse files
committed
Removes redundant code from JsonCamelCaseNamingPolicy.cs
1 parent 377fa6c commit ec6e4bc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libraries/System.Text.Json/Common/JsonCamelCaseNamingPolicy.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ public override string ConvertName(string name)
1515
#if NETCOREAPP
1616
return string.Create(name.Length, name, (chars, name) =>
1717
{
18-
name
19-
#if !NETCOREAPP
20-
.AsSpan()
21-
#endif
22-
.CopyTo(chars);
18+
name.CopyTo(chars);
2319
FixCasing(chars);
2420
});
2521
#else

0 commit comments

Comments
 (0)