Remove performance optimization.
MODIFY
WalletWasabi/Models/Label.cs
WalletWasabi/Models/Label.cs
@@ -61,29 +61,23 @@ namespace WalletWasabi.Models
public static bool operator ==(Label x, Label y)
{
- if (x is null)
- {
- if (y is null)
+ if (x is null && y is null)
{
return true;
}
- else
+
+ if (x is null && y != null)
{
return false;
}
- }
- else
- {
- if (y is null)
+
+ if (x != null && y is null)
{
return false;
}
- else
- {
+
return x.Labels.SequenceEqual(y.Labels);
}
- }
- }
public static bool operator !=(Label x, Label y) => !(x == y);

Remove performance optimization.