Removed redundant condition

This commit is contained in:
Rainer Simon 2020-06-27 21:12:45 +02:00 committed by GitHub
parent f1956a87b3
commit d47d93566e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}