mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
Remove "= nil", as it is the default value anyway
This commit is contained in:
parent
3334f9d1c7
commit
4ad5fdccd7
1 changed files with 1 additions and 1 deletions
|
|
@ -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: ""}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue