commit bc3b89f64d04692a0d79e046213d977107f8f6e3 parent bba76f9dffba9b0332644d724413fafe23ce10bf Author: cfillion <cfillion@users.noreply.github.com> Date: Mon, 18 Jan 2016 15:03:02 -0500 bit of refactoring Diffstat:
M | src/path.cpp | | | 11 | ++++------- |
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/path.cpp b/src/path.cpp @@ -40,13 +40,10 @@ static vector<string> Split(const string &input) list.push_back(input.substr(last)); break; } - - const string part = input.substr(last, pos - last); - - if(!part.empty()) - list.push_back(part); - - last = pos + 1; + else { + list.push_back(input.substr(last, pos - last)); + last = pos + 1; + } } return list;