Skip to content

Commit 6f8c73f

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
[Codemod][[cqs] Fix CQS signal. Id] 55563409 -- performance-faster-string-find in fbcode/pytorch/audio/src/libtorchaudio/sox (#3906)
Summary: Pull Request resolved: #3906 Reviewed By: dtolnay Differential Revision: D74236246
1 parent 5c04d2a commit 6f8c73f

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)