use ->> for better readability

pull/7749/head
sid597 2022-12-13 13:28:31 +05:30 committed by Tienson Qin
parent d2b45a59b3
commit 35badf5c52
1 changed files with 7 additions and 2 deletions

View File

@ -260,8 +260,13 @@
state)
:did-update (fn [state]
(reset! (:code-options state) (last (:rum/args state)))
(.setValue @(:editor-atom state)
(string/join "" (butlast (:lines (last (:rum/args state))))))
(->> state
:rum/args
last
:lines
butlast
(string/join "")
(.setValue @(:editor-atom state)))
state)}
[state _config id attr code _theme _options]
[:div.extensions__code