Skip to content

Commit

Permalink
remove redundant conditional compilation in TypeCache (#4569)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Jan 9, 2025
1 parent 9e07121 commit f3bf1a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Adapter/MSTest.TestAdapter/Execution/TypeCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,7 @@ private static bool TryGetUnescapedManagedTypeName(TestMethod testMethod, [NotNu
continue;
}

#if NETCOREAPP || WINDOWS_UWP
if (hierarchyPart.StartsWith('\'') && hierarchyPart.EndsWith('\''))
#else
if (hierarchyPart.StartsWith("'", StringComparison.Ordinal) && hierarchyPart.EndsWith("'", StringComparison.Ordinal))
#endif
{
unescapedTypeNameBuilder.Append(hierarchyPart, 1, hierarchyPart.Length - 2);
}
Expand Down

0 comments on commit f3bf1a5

Please sign in to comment.