mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-13 18:45:52 +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")
|
.ensureDoc("formInfo")
|
||||||
.then(async formInfo => {
|
.then(async formInfo => {
|
||||||
if (!formInfo.hasSignatures || !formInfo.hasFields) {
|
if (!formInfo.hasSignatures || !formInfo.hasFields) {
|
||||||
this.#signatureData = null;
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const annotationGlobals = await this.annotationGlobals;
|
const annotationGlobals = await this.annotationGlobals;
|
||||||
if (!annotationGlobals) {
|
if (!annotationGlobals) {
|
||||||
this.#signatureData = null;
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const fields = annotationGlobals.acroForm.get("Fields");
|
const fields = annotationGlobals.acroForm.get("Fields");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user