From 32e8c555f59c53f8c23d3c7a609852e0e9fe739e Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 24 Sep 2019 15:39:10 +0200 Subject: [PATCH] Fix lint issue --- container/container.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/container/container.go b/container/container.go index ebad1ab..2532a40 100644 --- a/container/container.go +++ b/container/container.go @@ -173,10 +173,7 @@ func (c *Container) CheckError() { // HasError returns wether or not the container is holding an error. func (c *Container) HasError() bool { - if c.err != nil { - return true - } - return false + return c.err != nil } // Error returns the error.