Skip to content

Commit 5be4fdb

Browse files
authored
Fix BoundingBox equality (#1650)
1 parent 9e919eb commit 5be4fdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PuppeteerSharp/BoundingBox.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ internal Clip ToClip()
6666
/// <inheritdoc/>
6767
public override bool Equals(object obj)
6868
{
69-
if (obj == null && GetType() != obj.GetType())
69+
if (obj == null || GetType() != obj.GetType())
7070
{
7171
return false;
7272
}
@@ -94,4 +94,4 @@ public override int GetHashCode()
9494
^ Width.GetHashCode() * 397
9595
^ Height.GetHashCode() * 397;
9696
}
97-
}
97+
}

0 commit comments

Comments
 (0)