Skip to content

Commit ca5e410

Browse files
committed
fixup
1 parent a47e0f8 commit ca5e410

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Elastica/Client.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,10 @@ public function updateDocument($id, $data, $index, $type, array $options = array
379379
}
380380
}
381381

382-
$retryOnConflict = $this->getConfig('retryOnConflict');
383-
if (!isset($options['retry_on_conflict']) && !empty($retryOnConflict)) {
384-
$options['retry_on_conflict'] = $retryOnConflict;
382+
if (!isset($options['retry_on_conflict'])) {
383+
if ($retryOnConflict = $this->getConfig('retryOnConflict')) {
384+
$options['retry_on_conflict'] = $retryOnConflict;
385+
}
385386
}
386387

387388
$response = $this->request($path, Request::POST, $requestData, $options);

0 commit comments

Comments
 (0)