mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 22:54:48 +00:00
chore: rm unused code
This commit is contained in:
@@ -62,12 +62,7 @@
|
||||
|
||||
(defn- <stat [path]
|
||||
(-> (p/chain (.stat Filesystem (clj->js {:path path}))
|
||||
#(js->clj % :keywordize-keys true)
|
||||
#(update % :type (fn [v]
|
||||
(case v
|
||||
"NSFileTypeDirectory" "directory"
|
||||
"NSFileTypeRegular" "file"
|
||||
v))))
|
||||
#(js->clj % :keywordize-keys true))
|
||||
(p/catch (fn [error]
|
||||
(js/console.error "stat Error: " path ": " error)
|
||||
nil))))
|
||||
|
||||
Reference in New Issue
Block a user