mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #31207 from zyfy29/delete-unused-var
chore: delete unused var in installer.go
This commit is contained in:
commit
b52b6615f0
3 changed files with 0 additions and 6 deletions
|
|
@ -31,9 +31,6 @@ import (
|
|||
// ErrMissingMetadata indicates that plugin.yaml is missing.
|
||||
var ErrMissingMetadata = errors.New("plugin metadata (plugin.yaml) missing")
|
||||
|
||||
// Debug enables verbose output.
|
||||
var Debug bool
|
||||
|
||||
// Options contains options for plugin installation.
|
||||
type Options struct {
|
||||
// Verify enables signature verification before installation
|
||||
|
|
|
|||
|
|
@ -119,8 +119,6 @@ func (o *pluginInstallOptions) newInstallerForSource() (installer.Installer, err
|
|||
}
|
||||
|
||||
func (o *pluginInstallOptions) run(out io.Writer) error {
|
||||
installer.Debug = settings.Debug
|
||||
|
||||
i, err := o.newInstallerForSource()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ func (o *pluginUpdateOptions) complete(args []string) error {
|
|||
}
|
||||
|
||||
func (o *pluginUpdateOptions) run(out io.Writer) error {
|
||||
installer.Debug = settings.Debug
|
||||
slog.Debug("loading installed plugins", "path", settings.PluginsDirectory)
|
||||
plugins, err := plugin.LoadAll(settings.PluginsDirectory)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue