diff options
Diffstat (limited to 'exclude.cpp')
-rw-r--r-- | exclude.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exclude.cpp b/exclude.cpp index 789c246e2..8ce138ad7 100644 --- a/exclude.cpp +++ b/exclude.cpp @@ -100,8 +100,8 @@ bool TWExclude::check_absolute_skip_dirs(const string& path) { bool TWExclude::check_skip_dirs(const string& path) { string normalized = TWFunc::Remove_Trailing_Slashes(path); size_t slashIdx = normalized.find_last_of('/'); - if(slashIdx != std::string::npos && slashIdx+1 < normalized.size()) { - if(check_relative_skip_dirs(normalized.substr(slashIdx+1))) + if (slashIdx != std::string::npos && slashIdx+1 < normalized.size()) { + if (check_relative_skip_dirs(normalized.substr(slashIdx+1))) return true; } return check_absolute_skip_dirs(normalized); |