Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8073dda

Browse files
committedMay 2, 2025··
refactor dependencies-fn
1 parent 00cea43 commit 8073dda

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/darkleaf/di/core.clj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -638,12 +638,12 @@
638638
(-> variable arglists seq boolean))
639639

640640
(defn- dependencies-fn [variable]
641-
(->> variable
642-
arglists
643-
(map first)
644-
(filter map?)
645-
(map map/dependencies)
646-
(reduce combine-dependencies)))
641+
(transduce (comp
642+
(map first)
643+
(filter map?)
644+
(map map/dependencies))
645+
combine-dependencies
646+
(arglists variable)))
647647

648648
(defn- stop-fn [variable]
649649
(-> variable meta (::stop (fn no-op [_]))))

0 commit comments

Comments
 (0)
Please sign in to comment.