remove extra {

pull/3001/head
Isaac Connor 2020-07-07 18:56:51 -04:00
parent 89f975e646
commit 9b447bde8e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ std::string trimSet(std::string str, std::string trimset) {
size_t endpos = str.find_last_not_of(trimset); // Find the first character position from reverse af size_t endpos = str.find_last_not_of(trimset); // Find the first character position from reverse af
// if all spaces or empty return an empty string // if all spaces or empty return an empty string
if ( ( std::string::npos == startpos ) || ( std::string::npos == endpos) ) { if ( ( std::string::npos == startpos ) || ( std::string::npos == endpos ) )
return std::string(""); return std::string("");
return str.substr(startpos, endpos-startpos+1); return str.substr(startpos, endpos-startpos+1);
} }