From baffa793db51e72ef853336fb7c3a11a233ce039 Mon Sep 17 00:00:00 2001 From: Evan Hazlett Date: Mon, 31 Oct 2016 11:53:43 -0400 Subject: [PATCH] lint fixes Signed-off-by: Evan Hazlett --- container/container_unix.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/container/container_unix.go b/container/container_unix.go index 32325f5639..f02be89e78 100644 --- a/container/container_unix.go +++ b/container/container_unix.go @@ -286,9 +286,8 @@ func (container *Container) UnmountSecrets() error { if _, err := os.Stat(container.SecretMountPath()); err != nil { if os.IsNotExist(err) { return nil - } else { - return err } + return err } return detachMounted(container.SecretMountPath())