Skip to content

Commit 22e3dc4

Browse files
committed
* refactor last commit
1 parent 38fa4c2 commit 22e3dc4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/clojure/cljs/externs.clj

+3-4
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,10 @@
7373
{:tag (get-tag ty)}
7474
(if (or (.isConstructor info) (.isInterface info))
7575
(let [qname (symbol (.. node getFirstChild getQualifiedName))]
76-
(cond-> (merge {:tag 'Function}
77-
(when (.hasBaseType info)
78-
{:super (get-tag (.getBaseType info))}))
76+
(cond-> {:tag 'Function}
7977
(.isConstructor info) (merge {:ctor qname})
80-
(.isInterface info) (merge {:iface qname})))
78+
(.isInterface info) (merge {:iface qname})
79+
(.hasBaseType info) (merge {:super (get-tag (.getBaseType info))})))
8180
(if (or (.hasReturnType info)
8281
(as-> (.getParameterCount info) c
8382
(and c (pos? c))))

0 commit comments

Comments
 (0)