From d47d93566e4ed92a160ede570af57c0808a5d002 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sat, 27 Jun 2020 21:12:45 +0200 Subject: [PATCH] Removed redundant condition --- src/WebAnnotation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index aed7fb0..76f8741 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -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; } -} \ No newline at end of file +}