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 <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • 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.