♻️ Refactor file persistence layer.

This commit is contained in:
Andrey Antukh 2020-09-07 10:56:42 +02:00 committed by Alonso Torres
parent 182afedc54
commit 4e694ff194
86 changed files with 3205 additions and 3313 deletions

View file

@ -20,7 +20,8 @@
(when-not (nil? obj)
(unchecked-get obj k)))
([obj k default]
(or (get obj k) default)))
(let [result (get obj k)]
(if (undefined? result) default result))))
(defn get-in
[obj keys]