File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,7 @@ def get_all_snapshots_to_consider
241
241
# Fetch the initial set of snapshots, sequentially
242
242
@connection_pool . with_connection do |connection |
243
243
initial_list = get_raw_list_from_api ( @base_url , nil , connection )
244
+ initial_list ||= [ ]
244
245
mutex . synchronize do
245
246
snapshot_list_to_consider . concat ( initial_list )
246
247
print "."
@@ -265,6 +266,7 @@ def get_all_snapshots_to_consider
265
266
@connection_pool . with_connection do |connection |
266
267
result = get_raw_list_from_api ( "#{ @base_url } /*" , page , connection )
267
268
end
269
+ result ||= [ ]
268
270
[ page , result ]
269
271
end
270
272
end
@@ -284,7 +286,7 @@ def get_all_snapshots_to_consider
284
286
285
287
# Process results and check for empty pages
286
288
results . each do |page , result |
287
- if result . empty?
289
+ if result . nil? || result . empty?
288
290
continue_fetching = false
289
291
break
290
292
else
You can’t perform that action at this time.
0 commit comments