Skip to content

Commit 2f343c1

Browse files
committed
Drop remains of a now useless change
1 parent 9098b1a commit 2f343c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main/streams/cast.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,8 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show
299299
php_error_docref(NULL, E_WARNING, "Cannot cast a filtered stream on this system");
300300
}
301301
return FAILURE;
302-
} else if (stream->ops->cast) {
303-
if (stream->ops->cast(stream, castas, ret) == SUCCESS) {
304-
goto exit_success;
305-
}
302+
} else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) {
303+
goto exit_success;
306304
}
307305

308306
if (show_err) {

0 commit comments

Comments
 (0)