Skip to content

Commit d66d692

Browse files
authored
same as previous commits for Bulk ResponseSet
1 parent 8f54087 commit d66d692

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Elastica/Bulk/ResponseSet.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,11 @@ public function hasError()
9595
}
9696

9797
/**
98-
* @return bool|\Elastica\Bulk\Response
98+
* @return \Elastica\Bulk\Response
9999
*/
100100
public function current()
101101
{
102-
return $this->valid()
103-
? $this->_bulkResponses[$this->key()]
104-
: false;
102+
return $this->_bulkResponses[$this->key()];
105103
}
106104

107105
/**

0 commit comments

Comments
 (0)