« get me outta code hell

more eslint fixes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-16 09:15:33 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-16 09:15:33 -0400
commitcf1be875ce9fb21dfa3bdd48c29a043ba13a3fa7 (patch)
treea9434814632694870d7d92e6a3c6271cc4b3b166 /src
parent877d56392cd17390db5bf6294656cbc66bc568b6 (diff)
more eslint fixes
Oops we accidentally excluded this from #415.
Diffstat (limited to 'src')
-rw-r--r--src/content-function.js2
-rw-r--r--src/data/composite.js3
-rw-r--r--src/data/things/language.js1
3 files changed, 1 insertions, 5 deletions
diff --git a/src/content-function.js b/src/content-function.js
index dcb23f7..8c7c4e2 100644
--- a/src/content-function.js
+++ b/src/content-function.js
@@ -514,7 +514,7 @@ export function getNeededContentDependencyNames(contentDependencies, name) {
 }
 
 export const decorateErrorWithRelationStack = (fn, traceStack) =>
-  decorateError(fn, (caughtError, ...args) => {
+  decorateError(fn, caughtError => {
     let cause = caughtError;
 
     for (const {name, args, traceError} of traceStack.slice().reverse()) {
diff --git a/src/data/composite.js b/src/data/composite.js
index 113f0a4..4f89d88 100644
--- a/src/data/composite.js
+++ b/src/data/composite.js
@@ -750,9 +750,6 @@ export function compositeFrom(description) {
   const anyStepsCompute =
     stepsCompute.includes(true);
 
-  const anyStepsTransform =
-    stepsTransform.includes(true);
-
   const compositionExposes =
     anyStepsExpose;
 
diff --git a/src/data/things/language.js b/src/data/things/language.js
index c576a31..6bd5a78 100644
--- a/src/data/things/language.js
+++ b/src/data/things/language.js
@@ -185,7 +185,6 @@ export class Language extends Thing {
     // These will be filled up as we iterate over the template, slotting in
     // each option (if it's present).
     const missingOptionNames = new Set();
-    const outputParts = [];
 
     // And this will have entries deleted as they're encountered in the
     // template. Leftover entries are misplaced.