Commit 30a05202 authored by Frederick Zhang's avatar Frederick Zhang

redundant condition

parent 8c9a5fe4
Pipeline #341 passed with stage
in 38 seconds
......@@ -23,7 +23,7 @@ std::string bitem::get_current_key(const std::string &path, size_t &pt) {
std::string current_key = path.substr(start, pt - start);
++pt;
size_t escape = current_key.find("\\/");
while (escape >= 0 && escape < current_key.length()) {
while (escape < current_key.length()) {
current_key.replace(escape, 2, "/");
escape = current_key.find("\\/");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment