Skip to content

Commit 9c30210

Browse files
committed
Update Bridge.php
1 parent b2cb18e commit 9c30210

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/DSL/Bridge.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,10 @@ public function processInsertBulk(array $records, bool $returnData = false, stri
400400
$finalResponse['hasErrors'] = $response['errors'];
401401
$finalResponse['took'] = $response['took'];
402402
foreach ($response['items'] as $count => $hit) {
403-
404403
$finalResponse['total']++;
405404
$payload = $params['body'][($count * 2) + 1];
406405
$id = $hit['index']['_id'];
407406
$record = ['_id' => $id] + $payload;
408-
409407
if (! empty($hit['index']['error'])) {
410408
$finalResponse['failed']++;
411409
$finalResponse['error_bag'][] = [
@@ -420,9 +418,7 @@ public function processInsertBulk(array $records, bool $returnData = false, stri
420418
} else {
421419
$finalResponse['modified']++;
422420
}
423-
424421
if ($returnData) {
425-
426422
$finalResponse['data'][] = $record;
427423
}
428424
}

0 commit comments

Comments
 (0)