aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/file.cpp b/common/file.cpp
index b662ab9c44..cb9836294b 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -309,7 +309,7 @@ bool File::exists(const String &filename) {
// First try to find the file it via a FilesystemNode (in case an absolute
// path was passed). But we only use this to filter out directories.
FilesystemNode file(filename);
- if (file.isValid() && file.isDirectory())
+ if (file.isDirectory())
return false;
// Next, try to locate the file by *opening* it in read mode. This has