« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/upd8.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 001aaa5..9c86c26 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -808,9 +808,7 @@ function makeProcessDocument(thingClass, {
 
         withAggregate({message: `Errors applying ${color.green(thingClass.name)} properties`}, ({ call }) => {
             for (const [ property, value ] of Object.entries(sourceProperties)) {
-                (() => {
-                    thing[property] = value;
-                })();
+                call(() => (thing[property] = value));
             }
         });