From 72ce31d1e64681e90d72957946a5c45d5cf1472a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Bj=C3=B8rntvedt?= Date: Sun, 24 Dec 2023 10:59:05 +0100 Subject: [PATCH] fixing eslint errors --- src/XmlWriter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XmlWriter.js b/src/XmlWriter.js index 850b8ef..fce83e7 100644 --- a/src/XmlWriter.js +++ b/src/XmlWriter.js @@ -1,7 +1,6 @@ const DOMImplementation = require('@xmldom/xmldom').DOMImplementation const XMLSerializer = require('@xmldom/xmldom').XMLSerializer const DOMParser = require('@xmldom/xmldom').DOMParser -const XmlReader = require('./XmlReader') class XmlWriter{ /** @@ -21,7 +20,8 @@ class XmlWriter{ * @returns {XmlWriter} */ static create(namespace, namespaceURI, schemaLocation, documentName = 'Document'){ - const {xmlWriter, doc, documentElement} = this.createRaw(namespace, documentName, 'version="1.0" encoding="utf-8"') + + const {xmlWriter, documentElement} = this.createRaw(namespace, documentName, 'version="1.0" encoding="utf-8"') if(namespaceURI && schemaLocation){ documentElement.setAttribute('xmlns:xsi', namespaceURI)