summaryrefslogtreecommitdiffstats
path: root/base/file_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r--base/file_util_win.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index 7be172f..9c34ab3 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -683,11 +683,8 @@ std::wstring FileEnumerator::Next() {
// it to pending_paths_ so we scan it after we finish scanning this
// directory.
pending_paths_.push(cur_file);
- return (file_type_ & FileEnumerator::DIRECTORIES) ? cur_file : Next();
}
-
- if ((file_type_ & FileEnumerator::DIRECTORIES) == 0)
- return Next();
+ return (file_type_ & FileEnumerator::DIRECTORIES) ? cur_file : Next();
}
return (file_type_ & FileEnumerator::FILES) ? cur_file : Next();
}