« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common-util/sugar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common-util/sugar.js b/src/common-util/sugar.js
index 9e344816..699f1091 100644
--- a/src/common-util/sugar.js
+++ b/src/common-util/sugar.js
@@ -119,7 +119,7 @@ export function accumulateSum(array, fn = x => x) {
   return array.reduce(
     (accumulator, value, index, array) =>
       accumulator +
-        fn(value, index, array) ?? 0,
+      (fn(value, index, array) ?? 0),
     0);
 }