diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-03-20 15:55:22 +0300 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-03-23 01:14:37 +0300 |
commit | 86e02966318531ddf7279c88821233c64aa7bf4c (patch) | |
tree | 3237b474c34c26daf7401b64b52bfa25e2540ae7 /src/node_report.cc | |
parent | 7d201c4e700ff94f17dab9185c03c44597976e8c (diff) |
src: apply clang-tidy performance-faster-string-find
PR-URL: https://github.com/nodejs/node/pull/26812
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_report.cc')
-rw-r--r-- | src/node_report.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_report.cc b/src/node_report.cc index 00d6a2454c6..f9cf9211434 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -507,7 +507,7 @@ static void PrintSystemInformation(JSONWriter* writer) { WideCharToMultiByte( CP_UTF8, 0, lpszVariable, -1, str, size, nullptr, nullptr); std::string env(str); - int sep = env.rfind("="); + int sep = env.rfind('='); std::string key = env.substr(0, sep); std::string value = env.substr(sep + 1); writer->json_keyvalue(key, value); |