lib/scrivito/workspace/publish_checker.rb in scrivito_sdk-1.5.5 vs lib/scrivito/workspace/publish_checker.rb in scrivito_sdk-1.6.0.rc1
- old
+ new
@@ -96,13 +96,13 @@
def assert_passing_result(responses)
sorted_responses = responses.sort_by do |response|
response[:from].to_i
end
- last_until = sorted_responses.inject(-1) do |last_until, response|
- if last_until == 'END'
+ last_until = sorted_responses.inject(-1) do |inner_last_until, response|
+ if inner_last_until == 'END'
raise_invalid_certificates_error
- elsif (last_until + 1) == response[:from].to_i
+ elsif (inner_last_until + 1) == response[:from].to_i
if response[:until] == 'END'
'END'
else
response[:until].to_i
end