Permalink
Browse files

issue #1 - treat all 0's as nil

  • Loading branch information...
1 parent 0e02118 commit df861b806cc4a321454029bf0e0265ad3d3deba9 @kumarshantanu committed Oct 15, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/leiningen/sub.clj
View
@@ -19,6 +19,7 @@
Note: Each sub-project directory should have its own project.clj file")
(reduce (fn [a b]
- (let [c (if (= 0 b) nil b)]
- (or a c)))
+ (let [a (if (= 0 a) nil a)
+ b (if (= 0 b) nil b)]
+ (or a b)))
(map run-sub-proj (:sub project)))))

0 comments on commit df861b8

Please sign in to comment.