From 9f2b492ff884a3068b3d03f63f8157259bf49ded Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Mon, 18 Jun 2018 01:00:42 +0300 Subject: [PATCH] Remove unncessary let --- src/reagent/impl/template.cljs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/reagent/impl/template.cljs b/src/reagent/impl/template.cljs index c20e130..7dfa83f 100644 --- a/src/reagent/impl/template.cljs +++ b/src/reagent/impl/template.cljs @@ -343,20 +343,20 @@ (aset tag-name-cache x (parse-tag x)))) (defn native-element [parsed argv first] - (let [comp ($ parsed :name)] - (let [props (nth argv first nil) - hasprops (or (nil? props) (map? props)) - jsprops (convert-props (if hasprops props) parsed) - first-child (+ first (if hasprops 1 0))] - (if (input-component? comp) - (-> [(reagent-input) argv comp jsprops first-child] - (with-meta (meta argv)) - as-element) - (let [key (-> (meta argv) get-key) - p (if (nil? key) - jsprops - (oset jsprops "key" key))] - (make-element argv comp p first-child)))))) + (let [comp ($ parsed :name) + props (nth argv first nil) + hasprops (or (nil? props) (map? props)) + jsprops (convert-props (if hasprops props) parsed) + first-child (+ first (if hasprops 1 0))] + (if (input-component? comp) + (-> [(reagent-input) argv comp jsprops first-child] + (with-meta (meta argv)) + as-element) + (let [key (-> (meta argv) get-key) + p (if (nil? key) + jsprops + (oset jsprops "key" key))] + (make-element argv comp p first-child))))) (defn str-coll [coll] (if (dev?)