refactor: Remove redundant `NewPullWithOpts`

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
pull/13577/head
George Jenkins 4 weeks ago
parent fbe20ff59a
commit 88da89085e

@ -43,7 +43,7 @@ result in an error, and the chart will not be saved locally.
`
func newPullCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
client := action.NewPullWithOpts(action.WithConfig(cfg))
client := action.NewPull(action.WithConfig(cfg))
cmd := &cobra.Command{
Use: "pull [chart URL | repo/chartname] [...]",

@ -56,13 +56,8 @@ func WithConfig(cfg *Configuration) PullOpt {
}
}
// NewPull creates a new Pull object.
func NewPull() *Pull {
return NewPullWithOpts()
}
// NewPullWithOpts creates a new pull, with configuration options.
func NewPullWithOpts(opts ...PullOpt) *Pull {
// NewPull creates a new Pull with configuration options.
func NewPull(opts ...PullOpt) *Pull {
p := &Pull{}
for _, fn := range opts {
fn(p)

Loading…
Cancel
Save