fix lint issue

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2020-12-07 18:04:57 +02:00
parent ffea2a2807
commit 4ceaf86416

View File

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