Skip to content

Commit 2979e23

Browse files
committed
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.
1 parent 5ca57fb commit 2979e23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/xfa/factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class XFAFactory {
4343
}
4444

4545
isValid() {
46-
return this.root && this.form;
46+
return !!(this.root && this.form);
4747
}
4848

4949
/**

0 commit comments

Comments
 (0)