Skip to content
代码片段 群组 项目
未验证 提交 e8798965 编辑于 作者: Lin Jen-Shin's avatar Lin Jen-Shin
浏览文件

Need to return from the method,not just break loop

上级 e6957553
No related branches found
No related tags found
无相关合并请求
......@@ -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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册