We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5998c8c commit 86a61edCopy full SHA for 86a61ed
1 file changed
src/pb_utils.cc
@@ -327,12 +327,9 @@ WrapTritonErrorInSharedPtr(TRITONSERVER_Error* error)
327
bool
328
IsValidIdentifier(const std::string& input)
329
{
330
- if (input.empty()) {
331
- return false;
332
- }
333
-
334
// Check for invalid characters
335
- if (input.find_first_of(INVALID_CHARS) != std::string::npos) {
+ if (input.empty() ||
+ input.find_first_of(INVALID_CHARS) != std::string::npos) {
336
return false;
337
}
338
0 commit comments