Skip to content

Commit

Permalink
Another silly flatten that could be a mapcat
Browse files Browse the repository at this point in the history
  • Loading branch information
amalloy committed Oct 23, 2014
1 parent 77879b2 commit 7cbd5bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/leiningen/clean.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@
(let [root-dir (:root project)]
(->> [:source-paths :java-source-paths :test-paths :resource-paths]
(select-keys project)
vals
flatten
(cons (io/file root-dir "doc"))
(cons (io/file root-dir "project.clj"))
(mapcat val)
(list* (io/file root-dir "doc")
(io/file root-dir "project.clj"))
(map io/file)
(map #(.getCanonicalPath %))
set)))
Expand Down

0 comments on commit 7cbd5bf

Please sign in to comment.