summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBalasankar "Balu" C <balasankar@gitlab.com>2017-12-14 18:09:13 +0530
committerBalasankar "Balu" C <balasankar@gitlab.com>2017-12-15 11:29:52 +0530
commitfe95db625d2fe9378b3339435a08e27fb460ee4e (patch)
tree157caba377c9d06e2ef3b419a214a9068d22fd01 /scripts
parentf4030dc35182223f6254343f05d2c8196c702a77 (diff)
downloadgitlab-ce-fe95db625d2fe9378b3339435a08e27fb460ee4e.tar.gz
Use guard clause
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trigger-build-omnibus4
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