« get me outta code hell

eslint: nontrivial fixes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-05-27 13:51:05 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-05-27 19:12:26 -0300
commit2311ed1685db7f703a78f31823f47980cc5bfdcc (patch)
tree12041f04ad32f4d86e6c14fde5fb3048960b58a3
parent02ebeddb325fd2589a7c013a1f366ed7093d5a69 (diff)
eslint: nontrivial fixes
-rw-r--r--src/data/things/album.js2
-rw-r--r--src/urls.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index cbc3796e..af42c6fa 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -709,8 +709,6 @@ export class Album extends Thing {
           isDefaultTrackSection: true,
         });
 
-        const albumRef = Thing.getReference(album);
-
         const closeCurrentTrackSection = () => {
           if (
             currentTrackSection.isDefaultTrackSection &&
diff --git a/src/urls.js b/src/urls.js
index 9cc4a554..b51ea459 100644
--- a/src/urls.js
+++ b/src/urls.js
@@ -129,6 +129,9 @@ export function generateURLs(urlSpec) {
         if (template === null) {
           // Self-diagnose, brutally.
 
+          // TODO: This variable isn't used, and has never been used,
+          // but it might have been *meant* to be used?
+          // eslint-disable-next-line no-unused-vars
           const otherTemplateKey = (device ? 'posix' : 'device');
 
           const {value: {[templateKey]: otherTemplate}} =