Skip to content

Commit b957ad1

Browse files
committed
NH-3638: Cleaned up equality syntax.
1 parent 9bbb4f3 commit b957ad1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/NHibernate/Mapping/ByCode/PropertyPath.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ public bool Equals(PropertyPath other)
6666
{
6767
return true;
6868
}
69-
return (ReferenceEquals(previousPath, null) && ReferenceEquals(other.previousPath, null) ||
70-
!ReferenceEquals(previousPath, null) && previousPath.Equals(other.previousPath)) &&
71-
localMember.Equals(other.localMember);
69+
return Equals(previousPath, other.previousPath) && Equals(localMember, other.localMember);
7270
}
7371

7472
public override int GetHashCode()

0 commit comments

Comments
 (0)