diff --git a/pkg/mirror/mirror_image.go b/pkg/mirror/mirror_image.go index 5777498f9..56cf54f3a 100644 --- a/pkg/mirror/mirror_image.go +++ b/pkg/mirror/mirror_image.go @@ -210,7 +210,7 @@ func (rt *ReplicateTasks) processKustomizeDir(absPath string, registry string, i p := path.Join(absPath, r) - if b, err :=utils.IsRemoteFile(p); b || err != nil { + if b, err := utils.IsRemoteFile(p); b || err != nil { if err != nil { log.Infof("Skipping path %v; there was an error determining if it was a local file; error: %v", p, err) continue @@ -227,7 +227,7 @@ func (rt *ReplicateTasks) processKustomizeDir(absPath string, registry string, i for _, r := range kustomization.Bases { p := path.Join(absPath, r) - if b, err :=utils.IsRemoteFile(p); b || err != nil { + if b, err := utils.IsRemoteFile(p); b || err != nil { if err != nil { log.Infof("Skipping path %v; there was an error determining if it was a local file; error: %v", p, err) continue