return err directly from pusher.Push

Signed-off-by: Josh Dolitsky <josh@dolit.ski>
pull/9782/head
Josh Dolitsky 4 years ago
parent faf7fc5efd
commit 4d948b4a06
No known key found for this signature in database
GPG Key ID: B2B93673243A65FB

@ -48,15 +48,10 @@ func (c *ChartUploader) UploadTo(ref, remote string) error {
return errors.New("scheme prefix missing from remote (e.g. \"oci://\")")
}
pusher, err := c.Pushers.ByScheme(u.Scheme)
p, err := c.Pushers.ByScheme(u.Scheme)
if err != nil {
return err
}
err = pusher.Push(ref, u.String(), c.Options...)
if err != nil {
return err
}
return nil
return p.Push(ref, u.String(), c.Options...)
}

Loading…
Cancel
Save