Skip to content

Commit e4ef394

Browse files
committed
Drop superfluous check for imap_stream
`GET_IMAP_STREAM` already checks whether `.imap_stream` is `NULL`, and bails out in that case. Closes GH-10053.
1 parent 4ae1f08 commit e4ef394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/imap/php_imap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ PHP_FUNCTION(imap_check)
14201420
RETURN_FALSE;
14211421
}
14221422

1423-
if (imap_conn_struct->imap_stream && imap_conn_struct->imap_stream->mailbox) {
1423+
if (imap_conn_struct->imap_stream->mailbox) {
14241424
rfc822_date(date);
14251425
object_init(return_value);
14261426
add_property_string(return_value, "Date", date);

0 commit comments

Comments
 (0)