Merge pull request #3581 from deitch/lint

fix lint issue
This commit is contained in:
Justin Cormack 2020-12-07 17:34:45 +00:00 committed by GitHub
commit a57ebdd8ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ import (
push.go and util.go. It then was modified to remove any command-line dependencies.
*/
func pushManifestList(auth dockertypes.AuthConfig, input types.YAMLInput, ignoreMissing, insecure, plainHttp bool, configDir string) (hash string, length int, err error) {
func pushManifestList(auth dockertypes.AuthConfig, input types.YAMLInput, ignoreMissing, insecure, plainHTTP bool, configDir string) (hash string, length int, err error) {
// resolve the target image reference for the combined manifest list/index
targetRef, err := reference.ParseNormalizedNamed(input.Image)
if err != nil {
@ -44,7 +44,7 @@ func pushManifestList(auth dockertypes.AuthConfig, input types.YAMLInput, ignore
configDirs = append(configDirs, filepath.Join(configDir, "config.json"))
}
resolver := newResolver(auth.Username, auth.Password, insecure,
plainHttp, configDirs...)
plainHTTP, configDirs...)
imageType := types.Docker
manifestList := types.ManifestList{