Skip to content

Commit

Permalink
condp = -> case
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Oct 21, 2024
1 parent b9c8445 commit 8c318ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/darkleaf/di/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -624,14 +624,14 @@
kind (::kind m (cond has-stop? :component))
arities (->> variable arglists (map count))]
(case kind
:component (condp = arities
:component (case arities
[0] (var->0-component variable)
[1] (var->1-component variable)
(throw (ex-info
"The component must only have 0 or 1 arity"
{:variable variable
:arities arities})))
#_service (condp = arities
#_service (case arities
[0] (var->0-service variable)
(var->service variable))))))

Expand Down

0 comments on commit 8c318ed

Please sign in to comment.