« 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.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js
index 7b66215..b610fa8 100755
--- a/upd8.js
+++ b/upd8.js
@@ -1015,10 +1015,9 @@ const replacerSpec = {
         let string = '';
         let iString = 0;
 
-        const pushNode = (...args) => nodes.push(makeNode(...args));
         const pushTextNode = () => {
             if (string.length) {
-                pushNode(iString, 'text', {string});
+                nodes.push(makeNode(iString, 'text', {string}));
                 string = '';
             }
         };