« get me outta code hell

fix miscellaneous eslint errors - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/html.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-08 08:51:20 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-08 08:51:20 -0300
commit21a270ca6efa561cad3e87048cf8deb8a166d55f (patch)
tree5a941db9062401ef7664efbbf68fb3db9b8775ee /src/util/html.js
parent40729920984ca1362f1672b1307bf7aa32687107 (diff)
fix miscellaneous eslint errors
Diffstat (limited to 'src/util/html.js')
-rw-r--r--src/util/html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/html.js b/src/util/html.js
index a311bbba..b1668558 100644
--- a/src/util/html.js
+++ b/src/util/html.js
@@ -242,7 +242,7 @@ export class Tag {
       this.selfClosing &&
       !(value === null ||
         value === undefined ||
-        !Boolean(value) ||
+        !value ||
         Array.isArray(value) && value.filter(Boolean).length === 0)
     ) {
       throw new Error(`Tag <${this.tagName}> is self-closing but got content`);