Merge pull request #993 from xenoplastic/master

remove redundancy code
This commit is contained in:
xiehan
2022-07-22 14:36:29 +08:00
committed by GitHub
-5
View File
@@ -82,11 +82,6 @@ void StringUtil::url_decode(std::string& str)
if (str.empty())
return;
char ch = str.back();
str.pop_back();
str.push_back(ch);
size_t sz = url_decode(const_cast<char *>(str.c_str()), str.size());
str.resize(sz);