Skip to content

Commit 74ef21b

Browse files
author
dnolen
committed
need to handle file & urls when reading transit cache
1 parent 1046cf9 commit 74ef21b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/clojure/cljs/analyzer.cljc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,7 @@
29202920
cached-ns (case ext
29212921
"edn" (edn/read-string (slurp cache))
29222922
"json" (let [{:keys [reader read]} @transit]
2923-
(read (reader (FileInputStream. ^File cache) :json))))]
2923+
(read (reader (io/input-stream cache) :json))))]
29242924
(when (or *verbose* (:verbose opts))
29252925
(util/debug-prn "Reading analysis cache for" (str res)))
29262926
(swap! env/*compiler*

0 commit comments

Comments
 (0)