From 20e0d6de085786c47bd94dde8515a40ff8b28f5a Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 4 Jul 2026 12:57:04 +0200 Subject: [PATCH] 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. --- src/core/document.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/document.js b/src/core/document.js index 093913ba7..5f6b9b743 100644 --- a/src/core/document.js +++ b/src/core/document.js @@ -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");