Use nullish coalescing in the Catalog.prototype.numPages getter
This commit is contained in:
parent
0d2ab3c709
commit
a90e46bdc9
@ -665,7 +665,7 @@ class Catalog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get numPages() {
|
get numPages() {
|
||||||
return this.hasActualNumPages ? this.#actualNumPages : this._pagesCount;
|
return this.#actualNumPages ?? this._pagesCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
get destinations() {
|
get destinations() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user