Remove unintended return statements
@@ -1250,7 +1250,6 @@ int Handler::http_send_stop_sending(int64_t stream_id,
rv != 0) {
std::cerr << "ngtcp2_conn_shutdown_stream_read: " << ngtcp2_strerror(rv)
<< std::endl;
- return -1;
if (rv == NGTCP2_ERR_STREAM_NOT_FOUND) {
return 0;
}
@@ -1277,7 +1276,6 @@ int Handler::http_reset_stream(int64_t stream_id, uint64_t app_error_code) {
rv != 0) {
std::cerr << "ngtcp2_conn_shutdown_stream_write: " << ngtcp2_strerror(rv)
<< std::endl;
- return -1;
if (rv == NGTCP2_ERR_STREAM_NOT_FOUND) {
return 0;
}
