We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8971829 commit 330c365Copy full SHA for 330c365
src/main/clojure/cljs/util.cljc
@@ -69,7 +69,8 @@
69
provide the file extension, defaults to :cljs."
70
([ns] (ns->relpath ns :cljs))
71
([ns ext]
72
- (str (string/replace (munge-path ns) \. \/) "." (name ext))))
+ (cond-> (string/replace (munge-path ns) \. \/)
73
+ ext (str "." (name ext)))))
74
75
(defn ns->source
76
"Given a namespace as a symbol return the corresponding resource if it exists."
0 commit comments