Skip to content

Commit

Permalink
Removes redundant code from JsonCamelCaseNamingPolicy.cs (#92738)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcortega authored Sep 28, 2023
1 parent 1cf7926 commit 3138a80
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ public override string ConvertName(string name)
#if NETCOREAPP
return string.Create(name.Length, name, (chars, name) =>
{
name
#if !NETCOREAPP
.AsSpan()
#endif
.CopyTo(chars);
name.CopyTo(chars);
FixCasing(chars);
});
#else
Expand Down

0 comments on commit 3138a80

Please sign in to comment.