Skip to content

Commit

Permalink
chore: remove redundant doall
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk authored and tiensonqin committed Dec 10, 2020
1 parent 06d32ef commit 8963e23
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main/frontend/handler/file.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,10 @@
git-add-f (fn []
(let [add-helper
(fn []
(doall
(map
(fn [[path content]]
(git-handler/git-add repo path update-status?))
files)))]
(map
(fn [[path content]]
(git-handler/git-add repo path update-status?))
files))]
(-> (p/all (add-helper))
(p/then (fn [_]
(when git-add-cb
Expand All @@ -224,7 +223,7 @@
(let [original-content (get file->content path)]
[path original-content content])) files)]
(history/add-history! repo files-tx))))]
(-> (p/all (doall (map write-file-f files)))
(-> (p/all (map write-file-f files))
(p/then (fn []
(git-add-f)
;; TODO: save logseq/metadata
Expand Down

0 comments on commit 8963e23

Please sign in to comment.