Skip to content

Commit 3e656b4

Browse files
committed
Merge remote-tracking branch 'remotes/origin/5.2' into 6.0-dev
# Conflicts: # EventListener/TerminateListener.php # composer.json
2 parents 0f4b9af + 494c5af commit 3e656b4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Service/ExportService.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public function exportIndex(
6666
$filename = str_replace('.json', '', $filename);
6767
$writer = $this->getWriter($this->getFilePath($filename.'.json'), $metadata['count']);
6868

69-
$file = [];
7069
foreach ($results as $data) {
7170
if ($counter >= $maxLinesInFile) {
7271
$writer->finalize();
@@ -83,7 +82,6 @@ public function exportIndex(
8382

8483
$doc = array_intersect_key($data, array_flip(['_id', '_type', '_source']));
8584
$writer->push($doc);
86-
$file[] = $doc;
8785
$progress->advance();
8886
$counter++;
8987
}

0 commit comments

Comments
 (0)