summaryrefslogtreecommitdiff
path: root/internal/syscallcompat
diff options
context:
space:
mode:
Diffstat (limited to 'internal/syscallcompat')
-rw-r--r--internal/syscallcompat/emulate.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/syscallcompat/emulate.go b/internal/syscallcompat/emulate.go
index e5aeae7..c0a0d09 100644
--- a/internal/syscallcompat/emulate.go
+++ b/internal/syscallcompat/emulate.go
@@ -78,9 +78,8 @@ func emulateUnlinkat(dirfd int, path string, flags int) (err error) {
}
if (flags & unix.AT_REMOVEDIR) != 0 {
return syscall.Rmdir(path)
- } else {
- return syscall.Unlink(path)
}
+ return syscall.Unlink(path)
}
// emulateMknodat emulates the syscall for platforms that don't have it