mirror of https://github.com/status-im/reagent.git
Remove unncessary let
This commit is contained in:
parent
22bb7b23bf
commit
9f2b492ff8
|
@ -343,20 +343,20 @@
|
||||||
(aset tag-name-cache x (parse-tag x))))
|
(aset tag-name-cache x (parse-tag x))))
|
||||||
|
|
||||||
(defn native-element [parsed argv first]
|
(defn native-element [parsed argv first]
|
||||||
(let [comp ($ parsed :name)]
|
(let [comp ($ parsed :name)
|
||||||
(let [props (nth argv first nil)
|
props (nth argv first nil)
|
||||||
hasprops (or (nil? props) (map? props))
|
hasprops (or (nil? props) (map? props))
|
||||||
jsprops (convert-props (if hasprops props) parsed)
|
jsprops (convert-props (if hasprops props) parsed)
|
||||||
first-child (+ first (if hasprops 1 0))]
|
first-child (+ first (if hasprops 1 0))]
|
||||||
(if (input-component? comp)
|
(if (input-component? comp)
|
||||||
(-> [(reagent-input) argv comp jsprops first-child]
|
(-> [(reagent-input) argv comp jsprops first-child]
|
||||||
(with-meta (meta argv))
|
(with-meta (meta argv))
|
||||||
as-element)
|
as-element)
|
||||||
(let [key (-> (meta argv) get-key)
|
(let [key (-> (meta argv) get-key)
|
||||||
p (if (nil? key)
|
p (if (nil? key)
|
||||||
jsprops
|
jsprops
|
||||||
(oset jsprops "key" key))]
|
(oset jsprops "key" key))]
|
||||||
(make-element argv comp p first-child))))))
|
(make-element argv comp p first-child)))))
|
||||||
|
|
||||||
(defn str-coll [coll]
|
(defn str-coll [coll]
|
||||||
(if (dev?)
|
(if (dev?)
|
||||||
|
|
Loading…
Reference in New Issue