Skip to content

Commit a29b4a7

Browse files
committed
Fix [-Wduplicated-branches] in CLI SAPI
1 parent 3b22b5f commit a29b4a7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,12 +1879,8 @@ static size_t php_cli_server_client_send_through(php_cli_server_client *client,
18791879
int nfds = php_pollfd_for(client->sock, POLLOUT, &tv);
18801880
if (nfds > 0) {
18811881
continue;
1882-
} else if (nfds < 0) {
1883-
/* error */
1884-
php_handle_aborted_connection();
1885-
return nbytes_left;
18861882
} else {
1887-
/* timeout */
1883+
/* error or timeout */
18881884
php_handle_aborted_connection();
18891885
return nbytes_left;
18901886
}

0 commit comments

Comments
 (0)