Remove unncessary let

This commit is contained in:
Juho Teperi 2018-06-18 01:00:42 +03:00
parent 22bb7b23bf
commit 9f2b492ff8
1 changed files with 14 additions and 14 deletions

View File

@ -343,8 +343,8 @@
(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))]
@ -356,7 +356,7 @@
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?)