Skip to content

Commit e12497c

Browse files
committed
[API] Test Runner: Fixes wipe_searchable_snapshot_indices
1 parent fa99159 commit e12497c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-api/api-spec-testing/wipe_cluster.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def wipe_all_indices(client)
308308

309309
def wipe_searchable_snapshot_indices(client)
310310
indices = client.cluster.state(metric: 'metadata', filter_path: 'metadata.indices.*.settings.index.store.snapshot')
311-
return if indices.dig('metadata', 'indices')
311+
return unless indices.dig('metadata', 'indices')
312312

313313
indices.each do |index|
314314
client.indices.delete(index: index, ignore: 404)

0 commit comments

Comments
 (0)