Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 9b6d7e3

Browse files
committed
Workaround fix related to #2152
1 parent c575106 commit 9b6d7e3

File tree

1 file changed

+2
-5
lines changed
  • src/Common/src/System/Xml

1 file changed

+2
-5
lines changed

src/Common/src/System/Xml/Ref.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ internal static class Ref
1010
{
1111
public static bool Equal(string strA, string strB)
1212
{
13-
#if DEBUG
14-
if (((object)strA != (object)strB) && string.Equals(strA, strB))
15-
System.Diagnostics.Debug.Fail("Ref.Equal: Object comparison used for non-atomized string '" + strA + "'");
16-
#endif
17-
return (object)strA == (object)strB;
13+
// Active Issue: #2152
14+
return strA == strB;
1815
}
1916

2017
// Prevent typos. If someone uses Ref.Equals instead of Ref.Equal,

0 commit comments

Comments
 (0)