Fix lint issue

This commit is contained in:
Daniel 2019-09-24 15:39:10 +02:00
parent f7ccc58b98
commit 32e8c555f5

View file

@ -173,10 +173,7 @@ func (c *Container) CheckError() {
// HasError returns wether or not the container is holding an error. // HasError returns wether or not the container is holding an error.
func (c *Container) HasError() bool { func (c *Container) HasError() bool {
if c.err != nil { return c.err != nil
return true
}
return false
} }
// Error returns the error. // Error returns the error.