Skip to content

Commit

Permalink
if-some
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Feb 7, 2025
1 parent 6d09b26 commit ddff7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darkleaf/di/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
(cond
(fn? middleware) (middleware registry)
(map? middleware) (fn [key]
(if-let [[_ trivial] (find middleware key)]
(if-some [[_ trivial] (find middleware key)]
trivial
(registry key)))
(seqable? middleware) (reduce apply-middleware
Expand Down

0 comments on commit ddff7c0

Please sign in to comment.