diff options
author | Balasankar "Balu" C <balasankar@gitlab.com> | 2017-12-14 18:09:13 +0530 |
---|---|---|
committer | Balasankar "Balu" C <balasankar@gitlab.com> | 2017-12-15 11:29:52 +0530 |
commit | fe95db625d2fe9378b3339435a08e27fb460ee4e (patch) | |
tree | 157caba377c9d06e2ef3b419a214a9068d22fd01 | |
parent | f4030dc35182223f6254343f05d2c8196c702a77 (diff) | |
download | gitlab-ce-fe95db625d2fe9378b3339435a08e27fb460ee4e.tar.gz |
Use guard clause
-rwxr-xr-x | scripts/trigger-build-omnibus | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/trigger-build-omnibus b/scripts/trigger-build-omnibus index 44102245d73..78f01c0e063 100755 --- a/scripts/trigger-build-omnibus +++ b/scripts/trigger-build-omnibus @@ -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 |