mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Re-format the code to account for prettier
and globals
updates
The `prettier` update slightly changed the formatting of some await-expressions; please see https://github.com/prettier/prettier/blob/main/CHANGELOG.md#302 The `globals` update removed the need for some eslint-disable statements; please see https://github.com/sindresorhus/globals/releases/tag/v13.21.0
This commit is contained in:
parent
c5ebfa51a7
commit
4d19db0b19
4 changed files with 22 additions and 34 deletions
|
@ -646,9 +646,8 @@ class Page {
|
|||
}
|
||||
|
||||
async getStructTree() {
|
||||
const structTreeRoot = await this.pdfManager.ensureCatalog(
|
||||
"structTreeRoot"
|
||||
);
|
||||
const structTreeRoot =
|
||||
await this.pdfManager.ensureCatalog("structTreeRoot");
|
||||
if (!structTreeRoot) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue