fix: do not backup persist_var

pull/6646/head
Andelf 2022-09-08 08:51:05 +08:00
parent e82defb17b
commit ed18d136da
1 changed files with 3 additions and 2 deletions

View File

@ -55,12 +55,13 @@
ISave
(-save [_]
(when-not (config/demo-graph?)
(if (config/demo-graph?)
(p/resolved nil)
(let [path (load-path location)
repo (state/get-current-repo)
content (str (get-in @*value [repo :value]))
dir (config/get-repo-dir repo)]
(fs/write-file! repo dir path content nil))))
(fs/write-file! repo dir path content {:skip-compare? true}))))
IDeref
(-deref [_this]