Skip to content

Commit a90e46b

Browse files
committed
Use nullish coalescing in the Catalog.prototype.numPages getter
1 parent 0d2ab3c commit a90e46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/catalog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ class Catalog {
665665
}
666666

667667
get numPages() {
668-
return this.hasActualNumPages ? this.#actualNumPages : this._pagesCount;
668+
return this.#actualNumPages ?? this._pagesCount;
669669
}
670670

671671
get destinations() {

0 commit comments

Comments
 (0)