File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 [cljs.tools.reader :as reader]
3333 [cljs.tools.reader.reader-types :as readers]
3434 [cljs.reader :as edn]))
35- #? (:clj (:import [java.io File Reader PushbackReader FileOutputStream FileInputStream ]
35+ #? (:clj (:import [java.io File Reader PushbackReader]
3636 [java.util.regex Pattern]
3737 [java.net URL]
3838 [java.lang Throwable]
45204520 (str " ;; Analyzed by ClojureScript " (util/clojurescript-version ) " \n "
45214521 (pr-str analysis)))
45224522 " json" (when-let [{:keys [writer write]} @transit]
4523- (write
4524- (writer (FileOutputStream. cache-file) :json
4525- transit-write-opts)
4526- analysis))))
4523+ (with-open [os (io/output-stream cache-file)]
4524+ (write (writer os :json transit-write-opts) analysis)))))
45274525 (when src
45284526 (.setLastModified ^File cache-file (util/last-modified src))))))
45294527
You can’t perform that action at this time.
0 commit comments