Fix CQS signal performance-faster-string-find in xplat/js/react-native-github/packages

Reviewed By: javache

Differential Revision: D78252727
This commit is contained in:
CodemodService Bot
2025-07-14 02:32:19 -07:00
committed by Facebook GitHub Bot
parent 1d452b17bf
commit 4ff3eb7a30
@@ -58,7 +58,7 @@ namespace {
// basename_r isn't in all iOS SDKs, so use this simple version instead.
std::string simpleBasename(const std::string& path) {
size_t pos = path.rfind("/");
size_t pos = path.rfind('/');
return (pos != std::string::npos) ? path.substr(pos) : path;
}