diff options
| author | bunnei <bunneidev@gmail.com> | 2018-07-21 18:50:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-21 18:50:38 -0700 |
| commit | 6602b23676d33b59f64a4711f7bb72043e76abf8 (patch) | |
| tree | bb42901196f8f8cf5d5adc29aa71890c8b50ba63 /src/common/file_util.cpp | |
| parent | 9ae3e4413fdea87a91b27716c36aafde99c67458 (diff) | |
| parent | 478a19a774accc9648eedf4df9e97d2f1ef32dd1 (diff) | |
Merge pull request #759 from lioncash/redundant
file_util: Remove redundant duplicate return in GetPathWithoutTop()
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 1e28f7cbb4..d8163a4a83 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -838,8 +838,7 @@ std::string GetPathWithoutTop(std::string path) { } const auto name_bck_index = path.find_first_of('\\'); const auto name_fwd_index = path.find_first_of('/'); - return path.substr(std::min<size_t>(name_bck_index, name_fwd_index) + 1); - return path.substr(std::min<size_t>(name_bck_index, name_fwd_index) + 1); + return path.substr(std::min(name_bck_index, name_fwd_index) + 1); } std::string GetFilename(std::string path) { |
