refactor(fs): handle global config as state, not in db

This commit is contained in:
Andelf
2023-03-16 10:53:56 +08:00
parent 98f4236309
commit a051ded28e
8 changed files with 41 additions and 81 deletions

View File

@@ -44,7 +44,7 @@
rpath (path/trim-dir-prefix repo-dir path)]
(if rpath
;; in-db file
(let [old-content (db/get-file rpath)]
(let [old-content (or (db/get-file rpath) "")]
(when (and
(not (string/blank? value))
(not= (string/trim value) (string/trim old-content)))