summaryrefslogtreecommitdiff
path: root/internal/syscallcompat/emulate.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-04-08 20:24:29 +0200
committerJakob Unterwurzacher2018-04-08 20:26:25 +0200
commitbcc8378a2c07476a43c1fe316b79590177ded3d3 (patch)
tree62ec5920109b92e3421884b9f3677ea95a83b56b /internal/syscallcompat/emulate.go
parentcab0cda449c831d1d5bb9b75452428c186079799 (diff)
Fix the easy golint warnings
Reported by https://goreportcard.com/report/github.com/rfjakob/gocryptfs
Diffstat (limited to 'internal/syscallcompat/emulate.go')
-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