« get me outta code hell

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:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/thing.js26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js
index 501286d7..389b3845 100644
--- a/src/data/things/thing.js
+++ b/src/data/things/thing.js
@@ -1542,30 +1542,8 @@ export default class Thing extends CacheableObject {
       earlyExitIfNotFound = false,
     }) {
       return Thing.composite.from(`Thing.composite.withResolvedReference`, [
-        {
-          flags: {expose: true, compose: true},
-          expose: {
-            mapDependencies: {ref},
-            mapContinuation: {to},
-
-            compute: ({ref}, continuation) =>
-              (ref
-                ? continuation()
-                : continuation.raise({to: null})),
-          },
-        },
-
-        {
-          flags: {expose: true, compose: true},
-          expose: {
-            mapDependencies: {data},
-
-            compute: ({data}, continuation) =>
-              (data === null
-                ? continuation.exit(null)
-                : continuation()),
-          },
-        },
+        Thing.composite.raiseWithoutDependency(ref, {map: {to}, raise: {to: null}}),
+        Thing.composite.earlyExitWithoutDependency(data),
 
         {
           flags: {expose: true, compose: true},