Skip to content

Commit eb77344

Browse files
vemvbbatsov
authored andcommitted
Avoid a lazy pmapping
1 parent 1b64607 commit eb77344

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/refactor_nrepl/core.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
Note that files which are non-existent, hidden or build-artifacts
103103
are pruned by this function."
104104
[pred dir]
105+
;; ensure pmap is not used lazily:
106+
{:post [(vector? %)]}
105107
(->> dir
106108
file-seq
107109
;; `pmap` performs better in large projects.
@@ -112,7 +114,7 @@
112114
(complement build-artifact?))
113115
f)
114116
f)))
115-
(filter identity)))
117+
(filterv identity)))
116118

117119
(defn read-ns-form
118120
([path]

0 commit comments

Comments
 (0)