We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e919eb commit 5be4fdbCopy full SHA for 5be4fdb
lib/PuppeteerSharp/BoundingBox.cs
@@ -66,7 +66,7 @@ internal Clip ToClip()
66
/// <inheritdoc/>
67
public override bool Equals(object obj)
68
{
69
- if (obj == null && GetType() != obj.GetType())
+ if (obj == null || GetType() != obj.GetType())
70
71
return false;
72
}
@@ -94,4 +94,4 @@ public override int GetHashCode()
94
^ Width.GetHashCode() * 397
95
^ Height.GetHashCode() * 397;
96
97
-}
+}
0 commit comments