Commit e8798965 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Need to return from the method,not just break loop

parent e6957553
......@@ -343,7 +343,7 @@ module Trigger
sleep INTERVAL
when :success
puts "#{self.class.unscoped_class_name} succeeded in #{duration} minutes!"
break
return
else
raise "#{self.class.unscoped_class_name} did not succeed!"
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment