Removed redundant condition
This commit is contained in:
parent
f1956a87b3
commit
d47d93566e
|
@ -26,7 +26,7 @@ export default class WebAnnotation {
|
|||
|
||||
/** An equality check based on the underlying object or (if given) ID **/
|
||||
isEqual(other) {
|
||||
if (!other || other?.type !== 'Annotation') {
|
||||
if (other?.type !== 'Annotation') {
|
||||
return false;
|
||||
} else if (this.underlying === other.underlying) {
|
||||
return true;
|
||||
|
@ -114,4 +114,4 @@ export default class WebAnnotation {
|
|||
return this.selector('TextPositionSelector').end;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue