clean code

pull/10839/head
Tienson Qin 2024-01-09 16:56:15 +08:00
parent 501c06c44f
commit 7e6835c02f
1 changed files with 1 additions and 4 deletions

View File

@ -274,10 +274,7 @@
(when-not (and (:create-today-journal? tx-meta)
(:today-journal-name tx-meta)
(d/entity @conn [:block/name (:today-journal-name tx-meta)])) ; today journal created already
(let [tx-meta' (if (or (:from-disk? tx-meta) (:new-graph? tx-meta))
tx-meta
(assoc tx-meta :skip-store? true))]
(ldb/transact! conn tx-data tx-meta')))
(ldb/transact! conn tx-data tx-meta))
nil)
(catch :default e
(prn :debug :error)