Fix
This commit is contained in:
@@ -14,12 +14,12 @@ export module Identifiable {
|
||||
Kind extends string,
|
||||
ID,
|
||||
>(
|
||||
self: Identifiable<Kind, ID>,
|
||||
that: Identifiable<Kind, ID>,
|
||||
to: Identifiable<Kind, ID>,
|
||||
): boolean {
|
||||
// Two elements can only be equal if they both have a defined ID
|
||||
return Option.isSome(that.id) && Option.isSome(to.id)
|
||||
? Equal.equals(that.id.value, to.id.value)
|
||||
return Option.isSome(self.id) && Option.isSome(that.id)
|
||||
? Equal.equals(self.id.value, that.id.value)
|
||||
: false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user