Simplify removing nils from paths argument
This commit is contained in:
parent
20f6415baf
commit
40859644b2
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
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]))))
|
||||
nil))
|
||||
rules (get-in project [:kibit :rules])
|
||||
src `(kibit.driver/external-run '~paths
|
||||
(when ~rules
|
||||
|
|
Loading…
Reference in a new issue