Permalink
Browse files

issue #1 - treat 0 as nil

  • Loading branch information...
1 parent 0fd8442 commit 0e02118fd00f9ea5ac59682d17bce4ec3cd0af84 @kumarshantanu committed Oct 15, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/leiningen/sub.clj
View
@@ -18,5 +18,7 @@
:sub [\"modules/dep1\" \"modules/proj-common\"]
Note: Each sub-project directory should have its own project.clj file")
- (reduce or
+ (reduce (fn [a b]
+ (let [c (if (= 0 b) nil b)]
+ (or a c)))
(map run-sub-proj (:sub project)))))

0 comments on commit 0e02118

Please sign in to comment.