fix deletion of dorodata on startup

master
Josha von Gizycki 5 years ago
parent e8d54c6fd5
commit 8c48f52471

@ -55,9 +55,12 @@
entries) entries)
(defn ensure-dorodata [] (defn ensure-dorodata []
(-> (file/open dorodata :w) (let [f (file/open dorodata :r)]
(file/flush) (if (nil? f)
(file/close))) (-> (file/open dorodata :w)
(file/flush)
(file/close))
(file/close f))))
(defn load-entries [] (defn load-entries []
(let [f (file/open dorodata :r) (let [f (file/open dorodata :r)

Loading…
Cancel
Save