« get me outta code hell

use {...null} style destructuring where appropriate - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-23 19:39:27 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-23 19:39:27 -0300
commitd7bd80239dead1179450b2a0b97f97c59e150905 (patch)
treea518c3ddf126c1449086395adbfd0de46ca1e233 /src/data
parent25a8a5f1c0145c88401da8930aace1feedee0cf1 (diff)
use {...null} style destructuring where appropriate
Yay JavaScript! for {...null} working but not (...null).
(tc39/ecma262#687)
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/language.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/things/language.js b/src/data/things/language.js
index 98ab9bc7..ec62de40 100644
--- a/src/data/things/language.js
+++ b/src/data/things/language.js
@@ -101,7 +101,7 @@ export class Language extends Thing {
         dependencies: ['strings', 'inheritedStrings', 'escapeHTML'],
         compute({strings, inheritedStrings, escapeHTML}) {
           if (!(strings || inheritedStrings) || !escapeHTML) return null;
-          const allStrings = {...(inheritedStrings ?? {}), ...(strings ?? {})};
+          const allStrings = {...inheritedStrings, ...strings};
           return Object.fromEntries(
             Object.entries(allStrings).map(([k, v]) => [k, escapeHTML(v)])
           );