Commit fe95db62 authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Use guard clause

parent f4030dc3
...@@ -66,9 +66,7 @@ module Omnibus ...@@ -66,9 +66,7 @@ module Omnibus
def wait! def wait!
loop do loop do
if timeout? raise "Pipeline timed out after waiting for #{duration} minutes!" if timeout?
raise "Pipeline timed out after waiting for #{duration} minutes!"
end
case status case status
when :created, :pending, :running when :created, :pending, :running
......
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