Skip to content

Commit

Permalink
Fix: exponential use of swap! + concat πŸ˜….
Browse files Browse the repository at this point in the history
  • Loading branch information
teesloane committed May 31, 2020
1 parent f2a5e87 commit 333908c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clojure/src/firn/file.clj
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@
;; add to sitemap when file is not private.
(when-not is-private
(swap! site-map conj new-site-map)
(swap! site-links concat @site-links (-> processed-file :meta :links))
(swap! site-logs concat @site-logs (-> processed-file :meta :links)))
(swap! site-links concat (-> processed-file :meta :links))
(swap! site-logs concat (-> processed-file :meta :logbook)))
;; add links and logs to site wide data.
(recur org-files output))))))

Expand Down

0 comments on commit 333908c

Please sign in to comment.