From a90e46bdc96dab0c5e3d7d666238a5ca935985e0 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 21 May 2025 16:47:20 +0200 Subject: [PATCH] Use nullish coalescing in the `Catalog.prototype.numPages` getter --- src/core/catalog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/catalog.js b/src/core/catalog.js index e9db9f522..e5946c50f 100644 --- a/src/core/catalog.js +++ b/src/core/catalog.js @@ -665,7 +665,7 @@ class Catalog { } get numPages() { - return this.hasActualNumPages ? this.#actualNumPages : this._pagesCount; + return this.#actualNumPages ?? this._pagesCount; } get destinations() {