mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-05 06:35:48 +02:00
Remove unneeded this.#signatureData = null; lines in src/core/document.js
Given that this is the *initial value* of the field, setting it again when no signatures exist is pointless.
This commit is contained in:
parent
5b100c4509
commit
20e0d6de08
@ -2133,12 +2133,10 @@ class PDFDocument {
|
||||
.ensureDoc("formInfo")
|
||||
.then(async formInfo => {
|
||||
if (!formInfo.hasSignatures || !formInfo.hasFields) {
|
||||
this.#signatureData = null;
|
||||
return null;
|
||||
}
|
||||
const annotationGlobals = await this.annotationGlobals;
|
||||
if (!annotationGlobals) {
|
||||
this.#signatureData = null;
|
||||
return null;
|
||||
}
|
||||
const fields = annotationGlobals.acroForm.get("Fields");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user