Skip to content

Commit

Permalink
[Issue #82] 'or' makes for cleaner code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBaranosky committed Mar 15, 2012
1 parent 3fd895f commit 563e76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/midje/ideas/formulas.clj
Expand Up @@ -70,7 +70,7 @@
:formula :formula-conclude )]

`(try
(loop [cnt-down# (if (contains? ~opts :num-trials) (:num-trials ~opts) midje.ideas.formulas/*num-trials*)]
(loop [cnt-down# (or (:num-trials ~opts) midje.ideas.formulas/*num-trials*)]
(when (pos? cnt-down#)
(let [snd-bindings# ~(vec (take-nth 2 (rest bindings)))
~(vec (take-nth 2 bindings)) snd-bindings#]
Expand Down

0 comments on commit 563e76d

Please sign in to comment.