Simplify removing nils from paths argument

This commit is contained in:
Daniel Compton 2015-08-29 17:48:11 +12:00
parent 20f6415baf
commit 40859644b2

View file

@ -9,12 +9,11 @@
(let [src-paths (get-in project [:kibit :source-paths] ["rules"])
kibit-project `{:dependencies [[jonase/kibit "0.1.2"]]
:source-paths ~src-paths}
paths (seq (disj (set (concat
(:source-paths project)
[(:source-path project)]
(mapcat :source-paths (get-in project [:cljsbuild :builds]))
(mapcat :source-paths (get-in project [:cljx :builds]))))
nil))
paths (filter some? (concat
(:source-paths project)
[(:source-path project)]
(mapcat :source-paths (get-in project [:cljsbuild :builds]))
(mapcat :source-paths (get-in project [:cljx :builds]))))
rules (get-in project [:kibit :rules])
src `(kibit.driver/external-run '~paths
(when ~rules