Use nullish coalescing in the Catalog.prototype.numPages getter

This commit is contained in:
Jonas Jenwald 2025-05-21 16:47:20 +02:00
parent 0d2ab3c709
commit a90e46bdc9

View File

@ -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() {