Skip to content

Commit c472415

Browse files
committed
style
1 parent 40b7216 commit c472415

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/clojure/clojure/tools/analyzer/passes/jvm/process_method_value.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
"Transforms :invoke nodes whose :fn is a :method-value into the
1515
corresponding :instance-call, :static-call, or :new node. "
1616
{:pass-info {:walk :post :depends #{#'analyze-host-expr}}}
17-
[{:keys [op] :as ast}]
17+
[{:keys [op args env] :as ast}]
1818
(if (and (= :invoke op)
1919
(= :method-value (:op (:fn ast))))
20-
(let [{:keys [args env]} ast
21-
{:keys [class method kind param-tags]} (:fn ast)]
20+
(let [{:keys [class method kind param-tags]} (:fn ast)]
2221
(when (and (= :instance kind) (empty? args))
2322
(throw (ex-info (str "Qualified instance method " (.getName ^Class class) "/." method
2423
" must have a target")

0 commit comments

Comments
 (0)