diff --git a/pkg/action/install.go b/pkg/action/install.go index 835dc770b..9ec1d0513 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -458,8 +458,7 @@ func (i *Install) failRelease(rel *release.Release, err error) (*release.Release func (i *Install) isDryRun() bool { if i.DryRunMode != "" { switch i.DryRunMode { - case DryRunModeClient: - case DryRunModeServer: + case DryRunModeClient, DryRunModeServer: return true case DryRunModeNone: return false diff --git a/pkg/action/upgrade.go b/pkg/action/upgrade.go index 002dcf443..e6028cf28 100644 --- a/pkg/action/upgrade.go +++ b/pkg/action/upgrade.go @@ -171,8 +171,7 @@ func (u *Upgrade) RunWithContext(ctx context.Context, name string, chart *chart. func (u *Upgrade) isDryRun() bool { if u.DryRunMode != "" { switch u.DryRunMode { - case DryRunModeClient: - case DryRunModeServer: + case DryRunModeClient, DryRunModeServer: return true case DryRunModeNone: return false