Skip to content

Commit 33097bc

Browse files
committed
Remove not necessary checks
1 parent f05baec commit 33097bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/curl/interface.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,8 @@ static int php_curl_option_url(php_curl *ch, const char *url, const int len) /*
225225
void _php_curl_verify_handlers(php_curl *ch, int reporterror) /* {{{ */
226226
{
227227
php_stream *stream;
228-
if (!ch || !ch->handlers) {
229-
return;
230-
}
228+
229+
ZEND_ASSERT(ch && ch->handlers);
231230

232231
if (!Z_ISUNDEF(ch->handlers->std_err)) {
233232
stream = (php_stream *)zend_fetch_resource2_ex(&ch->handlers->std_err, NULL, php_file_le_stream(), php_file_le_pstream());

0 commit comments

Comments
 (0)