Skip to content

Commit

Permalink
fix missing attr error
Browse files Browse the repository at this point in the history
  • Loading branch information
guyonroche committed Dec 12, 2019
1 parent af784c2 commit bbc3e04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/xml-stream.js
Expand Up @@ -73,7 +73,9 @@ class XmlStream {
if (!this.open) {
throw new Error('Cannot write attributes to node if it is not open');
}
pushAttribute(this._xml, name, value);
if (value !== undefined) {
pushAttribute(this._xml, name, value);
}
}

addAttributes(attrs) {
Expand Down

0 comments on commit bbc3e04

Please sign in to comment.