Skip to content

Commit d99dc30

Browse files
committed
ext/phar: Simplify a return condition in Phar::offsetExists()
1 parent 3d6683f commit d99dc30

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/phar/phar_object.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3527,10 +3527,7 @@ PHP_METHOD(Phar, offsetExists)
35273527
}
35283528
RETURN_TRUE;
35293529
} else {
3530-
if (zend_hash_str_exists(&phar_obj->archive->virtual_dirs, fname, fname_len)) {
3531-
RETURN_TRUE;
3532-
}
3533-
RETURN_FALSE;
3530+
RETURN_BOOL(zend_hash_str_exists(&phar_obj->archive->virtual_dirs, fname, fname_len));
35343531
}
35353532
}
35363533
/* }}} */

0 commit comments

Comments
 (0)