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

Rollback label equality