mirror of
https://github.com/curl/curl.git
synced 2026-05-07 11:37:29 +03:00
misc: fix code quality findings
- httpsrr: drop redundant checks. Follow-up to809dda3a37#21354 - httpsrr.h: drop obsolete comment. Follow-up to2b3dfb4ad4#21175 - ws: drop redundant check in `curl_ws_start_frame()`. Follow-up to37cecfc7b9#17683 - ws: fix typo in comment. - tool_operate: fix VMS build. (broken since 2019-07-20, v7.66.0) Follow-up tob889408500#3804 Pointed out by Copilot Code Quality Closes #21393
This commit is contained in:
parent
2e3607034d
commit
8eb3cb75a3
4 changed files with 8 additions and 14 deletions
|
|
@ -249,10 +249,9 @@ bool Curl_httpsrr_applicable(struct Curl_easy *data,
|
|||
{
|
||||
if(!data->conn || !rr)
|
||||
return FALSE;
|
||||
return (data->conn && rr &&
|
||||
(!rr->target || !rr->target[0] ||
|
||||
(rr->target[0] == '.' && !rr->target[1])) &&
|
||||
(!rr->port_set || rr->port == data->conn->remote_port));
|
||||
return (!rr->target || !rr->target[0] ||
|
||||
(rr->target[0] == '.' && !rr->target[1])) &&
|
||||
(!rr->port_set || rr->port == data->conn->remote_port);
|
||||
}
|
||||
|
||||
#ifdef USE_ARES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue