diff --git a/pkg/action/push.go b/pkg/action/push.go index 4c61856eb..53343af1b 100644 --- a/pkg/action/push.go +++ b/pkg/action/push.go @@ -17,7 +17,7 @@ limitations under the License. package action import ( - "fmt" + "errors" "io" "helm.sh/helm/v4/pkg/cli" @@ -100,7 +100,7 @@ func (p *Push) Run(chartRef string, remote string) (*registry.PushResult, error) if registry.IsOCI(remote) { if p.cfg == nil { - return nil, fmt.Errorf("missing action configuration: use WithPushConfig when constructing Push") + return nil, errors.New("missing action configuration: use WithPushConfig when constructing Push") } // Don't use the default registry client if tls options are set. c.Options = append(c.Options, pusher.WithRegistryClient(p.cfg.RegistryClient))