Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/6.0-dev' into 6.1-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
saimaz committed Dec 30, 2019
2 parents 9a9b815 + 3e656b4 commit a56e213
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Service/ExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public function exportIndex(
$filename = str_replace('.json', '', $filename);
$writer = $this->getWriter($this->getFilePath($filename.'.json'), $metadata['count']);

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

$doc = array_intersect_key($data, array_flip(['_id', '_type', '_source']));
$writer->push($doc);
$file[] = $doc;
$progress->advance();
$counter++;
}
Expand Down

0 comments on commit a56e213

Please sign in to comment.