clang-tidy: drop some redundant conditions reported by misc-redundant-expression

Not enforced due to false positives, and because in cases a redundant
expression (e.g. encapsulated in a macro) may be preferred.

Ref: https://clang.llvm.org/extra/clang-tidy/checks/misc/redundant-expression.html

Closes #20644
This commit is contained in:
Viktor Szakats 2026-02-18 15:14:06 +01:00
parent 078b3031ea
commit 020f48d00c
No known key found for this signature in database
4 changed files with 5 additions and 5 deletions

View file

@ -435,7 +435,7 @@ static int proxy_h2_on_frame_send(nghttp2_session *session,
(void)session;
DEBUGASSERT(data);
if(data && Curl_trc_cf_is_verbose(cf, data)) {
if(Curl_trc_cf_is_verbose(cf, data)) {
char buffer[256];
int len;
len = Curl_nghttp2_fr_print(frame, buffer, sizeof(buffer) - 1);