« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xupd8.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js
index 7b66215e..b610fa8b 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 = '';
             }
         };