aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/fusefrontend/fs_dir.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/fusefrontend/fs_dir.go b/internal/fusefrontend/fs_dir.go
index b144ea4..91c899e 100644
--- a/internal/fusefrontend/fs_dir.go
+++ b/internal/fusefrontend/fs_dir.go
@@ -193,10 +193,7 @@ retry:
if err == io.EOF {
// The directory is empty
tlog.Warn.Printf("Rmdir: %q: gocryptfs.diriv is missing", cPath)
- err = syscall.Rmdir(cPath)
- if err != nil {
- return fuse.ToStatus(err)
- }
+ return fuse.ToStatus(syscall.Rmdir(cPath))
}
if err != nil {
tlog.Warn.Printf("Rmdir: Readdirnames: %v", err)