Skip to content

Commit a56e213

Browse files
committed
Merge remote-tracking branch 'remotes/origin/6.0-dev' into 6.1-dev
2 parents 9a9b815 + 3e656b4 commit a56e213

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
@@ -65,7 +65,6 @@ public function exportIndex(
6565
$filename = str_replace('.json', '', $filename);
6666
$writer = $this->getWriter($this->getFilePath($filename.'.json'), $metadata['count']);
6767

68-
$file = [];
6968
foreach ($results as $data) {
7069
if ($counter >= $maxLinesInFile) {
7170
$writer->finalize();
@@ -82,7 +81,6 @@ public function exportIndex(
8281

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

0 commit comments

Comments
 (0)