« get me outta code hell

content: don't shorthand capsule instead of workingCapsule - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-16 15:28:28 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:12 -0300
commit3bb3ac18c84bfcfddbc560143a323ddf64c92512 (patch)
tree5fde264956bb9224c98ec9e5e120beb20b130366 /src/content/dependencies/generateArtistInfoPageTracksChunkItem.js
parent99261a74b1f3298144d8c5c6d676d63ad27a1299 (diff)
content: don't shorthand capsule instead of workingCapsule
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageTracksChunkItem.js')
-rw-r--r--src/content/dependencies/generateArtistInfoPageTracksChunkItem.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js
index d526f97a..96976826 100644
--- a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js
+++ b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js
@@ -100,16 +100,16 @@ export default {
           : html.blank()),
 
       content:
-        language.encapsulate('artistPage.creditList.entry.track', capsule => {
-          const options = {track: relations.trackLink};
+        language.encapsulate('artistPage.creditList.entry.track', workingCapsule => {
+          const workingOptions = {track: relations.trackLink};
 
           if (data.duration) {
-            capsule += '.withDuration';
-            options.duration =
+            workingCapsule += '.withDuration';
+            workingOptions.duration =
               language.formatDuration(data.duration);
           }
 
-          return language.$(capsule, options);
+          return language.$(workingCapsule, workingOptions);
         }),
     }),
 };