fix failure in case of missing options
This commit is contained in:
parent
024523a3b5
commit
65e2731f83
1 changed files with 1 additions and 1 deletions
|
@ -900,7 +900,7 @@ module Ci
|
||||||
# sure that the format is always correct when accessing the retry options,
|
# sure that the format is always correct when accessing the retry options,
|
||||||
# even on old builds.
|
# even on old builds.
|
||||||
def normalized_retry
|
def normalized_retry
|
||||||
value = options[:retry]
|
value = options&.dig(:retry)
|
||||||
value.is_a?(Integer) ? { max: value } : value.to_h
|
value.is_a?(Integer) ? { max: value } : value.to_h
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue