Skip to content

Commit

Permalink
fix busted instance? cases
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Nov 4, 2013
1 parent 2bedcd6 commit 89aef54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/cljs/analyzer.clj
Expand Up @@ -1189,8 +1189,8 @@
"Returns a path suitable for providing to tools.reader as a 'filename'."
[x]
(cond
(instance? File) (.getAbsolutePath ^File x)
(instance? java.net.URL) (-> ^java.net.URL x .toURI File. .getAbsolutePath)
(instance? File x) (.getAbsolutePath ^File x)
(instance? java.net.URL x) (-> ^java.net.URL x .toURI File. .getAbsolutePath)
:default (str x)))

(defn forms-seq
Expand Down

0 comments on commit 89aef54

Please sign in to comment.