Remove "= nil", as it is the default value anyway

This commit is contained in:
Casper Wilstrup 2015-09-01 14:42:27 +02:00
parent 3334f9d1c7
commit 4ad5fdccd7

View file

@ -133,7 +133,7 @@ func (client dockerClient) IsContainerStale(c Container) (bool, error) {
imageName := c.ImageName() imageName := c.ImageName()
if client.pullImages { if client.pullImages {
var a *dockerclient.AuthConfig = nil var a *dockerclient.AuthConfig
if client.username!="" { if client.username!="" {
a = &dockerclient.AuthConfig{Username: client.username, Password: client.password, Email: ""} a = &dockerclient.AuthConfig{Username: client.username, Password: client.password, Email: ""}
} }