Ensure that XFAFactory.prototype.isValid returns a boolean value

Considering the name of the method, and how it's actually being used, you'd expect it to return a boolean value.
Given how it's currently being used this inconsistency doesn't cause any issues, however we should still fix this.
This commit is contained in:
Jonas Jenwald 2025-05-04 12:34:30 +02:00
parent 5ca57fbd4b
commit 2979e23f3c

View File

@ -43,7 +43,7 @@ class XFAFactory {
}
isValid() {
return this.root && this.form;
return !!(this.root && this.form);
}
/**