Skip to content

Commit

Permalink
dont find namespaces twice
Browse files Browse the repository at this point in the history
  • Loading branch information
martinklepsch committed Nov 9, 2018
1 parent 25b01ae commit 3f2ea84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codox/src/codox/reader/clojure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@

(defn- find-namespaces [file]
(cond
(.isDirectory file) (ns/find-namespaces-in-dir file)
(jar-file? file) (ns/find-namespaces-in-jarfile (JarFile. file))))
(.isDirectory file) (set (ns/find-namespaces-in-dir file))
(jar-file? file) (set (ns/find-namespaces-in-jarfile (JarFile. file)))))

(defn read-namespaces
"Read Clojure namespaces from a set of source directories (defaults
Expand Down

0 comments on commit 3f2ea84

Please sign in to comment.