mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/phar: Simplify a return condition in Phar::offsetExists()
This commit is contained in:
parent
20f7e08687
commit
6f986837ec
1 changed files with 1 additions and 4 deletions
|
@ -3527,10 +3527,7 @@ PHP_METHOD(Phar, offsetExists)
|
|||
}
|
||||
RETURN_TRUE;
|
||||
} else {
|
||||
if (zend_hash_str_exists(&phar_obj->archive->virtual_dirs, fname, fname_len)) {
|
||||
RETURN_TRUE;
|
||||
}
|
||||
RETURN_FALSE;
|
||||
RETURN_BOOL(zend_hash_str_exists(&phar_obj->archive->virtual_dirs, fname, fname_len));
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue