From d4a7b3bfffcf7ee88c1c94e1990cc7842a05c60d Mon Sep 17 00:00:00 2001 From: yxxhero <11087727+yxxhero@users.noreply.github.com> Date: Sun, 3 Apr 2022 08:16:59 +0800 Subject: [PATCH] fix little issue (#2126) Signed-off-by: yxxhero --- pkg/state/state.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/state/state.go b/pkg/state/state.go index b9525210..fae56776 100644 --- a/pkg/state/state.go +++ b/pkg/state/state.go @@ -1705,10 +1705,8 @@ func (st *HelmState) prepareDiffReleases(helm helmexec.Interface, additionalValu flags = append(flags, "--include-tests") } - if suppress != nil { - for _, s := range suppress { - flags = append(flags, "--suppress", s) - } + for _, s := range suppress { + flags = append(flags, "--suppress", s) } if suppressSecrets {