mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
return err directly from pusher.Push
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
This commit is contained in:
parent
faf7fc5efd
commit
4d948b4a06
1 changed files with 2 additions and 7 deletions
|
|
@ -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…
Reference in a new issue