diff options
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Util.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp index a4f6ef87998..d3e237eb250 100644 --- a/cpp/src/IcePatch2/Util.cpp +++ b/cpp/src/IcePatch2/Util.cpp @@ -309,10 +309,8 @@ IcePatch2::getSuffix(const string& pa) { return string(); } - else - { - return path.substr(dotPos + 1); - } + + return path.substr(dotPos + 1); } string @@ -327,10 +325,8 @@ IcePatch2::getWithoutSuffix(const string& pa) { return path; } - else - { - return path.substr(0, dotPos); - } + + return path.substr(0, dotPos); } bool |