Skip to content

Commit a1f36b3

Browse files
committed
Wrap a get-libspec-from-file-with-caching with with-suppressed-errors
Now that it performs extra computations, it is plausible that it could fail a little more easily.
1 parent e22a91f commit a1f36b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/refactor_nrepl/ns/libspecs.clj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,13 @@
116116
[clj-aliases cljs-aliases] (pmap (fn [[dialect pred] corpus]
117117
(->> corpus
118118
(filter pred)
119-
(map (partial get-libspec-from-file-with-caching dialect))
119+
(keep (comp (fn [v]
120+
(or v
121+
;; nullify `false` values for `keep`:
122+
nil))
123+
(util/with-suppressed-errors
124+
(partial get-libspec-from-file-with-caching dialect)
125+
ignore-errors?)))
120126
aliases-by-frequencies))
121127
[[:clj (util/with-suppressed-errors
122128
(some-fn core/clj-file? core/cljc-file?)

0 commit comments

Comments
 (0)