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 ...@@ -343,7 +343,7 @@ module Trigger
sleep INTERVAL sleep INTERVAL
when :success when :success
puts "#{self.class.unscoped_class_name} succeeded in #{duration} minutes!" puts "#{self.class.unscoped_class_name} succeeded in #{duration} minutes!"
break return
else else
raise "#{self.class.unscoped_class_name} did not succeed!" raise "#{self.class.unscoped_class_name} did not succeed!"
end 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