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

Use guard clause

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