aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 880383d220..214c980d5a 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -411,9 +411,9 @@ bool File::open(const FilesystemNode &node, AccessMode mode) {
bool File::remove(const String &filename){
if (remove(filename.c_str()) != 0) {
- if(errno == EACCES)
+ if (errno == EACCES)
;//TODO: read-only file
- if(errno == ENOENT)
+ if (errno == ENOENT)
;//TODO: non-existent file
return false;
@@ -424,9 +424,9 @@ bool File::remove(const String &filename){
bool File::remove(const FilesystemNode &node){
if (remove(node.getPath()) != 0) {
- if(errno == EACCES)
+ if (errno == EACCES)
;//TODO: read-only file
- if(errno == ENOENT)
+ if (errno == ENOENT)
;//TODO: non-existent file
return false;