Rename var auther so grammar bot doesn't complain
@@ -44,7 +44,7 @@ import (
var (
// Authentication method for using Google Cloud Registry APIs.
- auther = authn.DefaultKeychain
+ defaultKeychain = authn.DefaultKeychain
// Alias of remote.Delete for testing purposes.
remoteDelete = remote.Delete
@@ -162,7 +162,7 @@ func (d *ImageDeleter) deleteImage(ref string) error {
if err != nil {
return errors.Wrapf(err, "failed to parse reference %q", ref)
}
- if err := remoteDelete(image, remote.WithAuthFromKeychain(auther)); err != nil {
+ if err := remoteDelete(image, remote.WithAuthFromKeychain(defaultKeychain)); err != nil {
return errors.Wrapf(err, "failed to delete %q", image)
}
return nil
@@ -250,7 +250,7 @@ func (d *ImageDeleter) DeleteResources(project string, hoursToKeepResource int,
}
}
return nil
- }, google.WithAuthFromKeychain(auther))
+ }, google.WithAuthFromKeychain(defaultKeychain))
}
// Projects returns the projects that should be cleaned up by a ResourceDeleter.
