From bcc8378a2c07476a43c1fe316b79590177ded3d3 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 8 Apr 2018 20:24:29 +0200 Subject: Fix the easy golint warnings Reported by https://goreportcard.com/report/github.com/rfjakob/gocryptfs --- internal/syscallcompat/emulate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/syscallcompat/emulate.go') 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 -- cgit v1.2.3