From 40859644b2b675cd214a495456d15e1be90d85e4 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Sat, 29 Aug 2015 17:48:11 +1200 Subject: [PATCH] Simplify removing nils from paths argument --- src/leiningen/kibit.clj | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/leiningen/kibit.clj b/src/leiningen/kibit.clj index 72a8a71..90bd38e 100644 --- a/src/leiningen/kibit.clj +++ b/src/leiningen/kibit.clj @@ -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