« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'upd8.js')
-rwxr-xr-xupd8.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/upd8.js b/upd8.js
index 3b495b9a..37b72ae2 100755
--- a/upd8.js
+++ b/upd8.js
@@ -997,9 +997,7 @@ const replacerSpec = {
         return (
             nodes.length === 0 ? null :
             nodes.length === 1 ? nodes[0] :
-            makeNode(i, 'text', {
-                string: nodes.map(node => node.string).join(' ')
-            })
+            makeNode(i, 'text', nodes.map(node => node.string).join(' '))
         );
     };
 
@@ -1011,7 +1009,7 @@ const replacerSpec = {
 
         const pushTextNode = () => {
             if (string.length) {
-                nodes.push(makeNode(iString, 'text', {string}));
+                nodes.push(makeNode(iString, 'text', string));
                 string = '';
             }
         };