Dont use let

This commit is contained in:
erik 2024-05-17 18:54:08 +02:00
parent a21ff9592d
commit 430911272e

View file

@ -94,8 +94,7 @@
(= (:type item) :element) (= (:type item) :element)
(= class (:class (:attrs item)))])] (= class (:class (:attrs item)))])]
(if condition (if condition
(let [content (:content item)] (assoc-in item [:content] insertion-element)
(assoc-in item [:content] insertion-element))
item))) item)))
(defn masto-media->html [html media_attachments] (defn masto-media->html [html media_attachments]