Skip to content

Commit cb90cea

Browse files
[Codemod][CppQualityCommon] Fix CQS signal performance-faster-string-find in fbcode/pytorch/audio/src/libtorchaudio/sox
Differential Revision: D77129894 Pull Request resolved: #3943
1 parent 4e94321 commit cb90cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtorchaudio/sox/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ torch::Tensor convert_to_tensor(
195195
}
196196

197197
const std::string get_filetype(const std::string& path) {
198-
std::string ext = path.substr(path.find_last_of(".") + 1);
198+
std::string ext = path.substr(path.find_last_of('.') + 1);
199199
std::transform(ext.begin(), ext.end(), ext.begin(), ::tolower);
200200
return ext;
201201
}

0 commit comments

Comments
 (0)