Skip to content

Commit

Permalink
quic: fix clang-tidy performance-faster-string-find issue
Browse files Browse the repository at this point in the history
PR-URL: #33975
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
gengjiawen committed Jun 22, 2020
1 parent 9743624 commit 09330fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quic/node_quic_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ bool CheckCertNames(
return false;
}

if (name_parts[0].find("*") == std::string::npos ||
if (name_parts[0].find('*') == std::string::npos ||
name_parts[0].find("xn--") != std::string::npos) {
return host_parts[0] == name_parts[0];
}
Expand Down

0 comments on commit 09330fc

Please sign in to comment.