From 921f2ffe1f23cd4234394637703301f03ac0df33 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Tue, 22 Nov 2011 11:17:46 +0000 Subject: [PATCH] slight cleanup of backtrack code git-svn-id: http://biopieces.googlecode.com/svn/trunk@1674 74ccb610-7750-0410-82ae-013aeee3265d --- code_ruby/lib/maasha/backtrack.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code_ruby/lib/maasha/backtrack.rb b/code_ruby/lib/maasha/backtrack.rb index c47f97e..dea556a 100644 --- a/code_ruby/lib/maasha/backtrack.rb +++ b/code_ruby/lib/maasha/backtrack.rb @@ -153,9 +153,7 @@ module BackTrack while (*s) { - e = backtrack(ss, s, p, mm, ins, del); - - if (e) + if (e = backtrack(ss, s, p, mm, ins, del)) { tuple = rb_ary_new(); rb_ary_push(tuple, INT2FIX((int) (s - ss))); -- 2.39.5