diff options
author | Markus Doits <markus.doits@stellenticket.de> | 2018-11-05 21:18:16 +0300 |
---|---|---|
committer | Markus Doits <markus.doits@stellenticket.de> | 2018-11-07 15:05:27 +0300 |
commit | 65e2731f8316d614b9002f5c80f6afbd08925543 (patch) | |
tree | c49e9b1d9f1b33290e39f075a5a71ad6f23af576 /app/models | |
parent | 024523a3b5385c5ee678c695de5a1aed6f537441 (diff) |
fix failure in case of missing options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/build.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 392cf5bb721..9d6bfbb0db7 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -900,7 +900,7 @@ module Ci # sure that the format is always correct when accessing the retry options, # even on old builds. def normalized_retry - value = options[:retry] + value = options&.dig(:retry) value.is_a?(Integer) ? { max: value } : value.to_h end |