We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a50d670 commit 9a750c5Copy full SHA for 9a750c5
cmd/helm3.go
@@ -177,17 +177,18 @@ func (d *diffCmd) template(isUpgrade bool) ([]byte, error) {
177
178
i := bytes.Index(s, []byte("HOOKS:"))
179
s = s[i:]
180
-
181
i = bytes.Index(s, []byte("---"))
182
183
184
i = bytes.Index(s, []byte("MANIFEST:"))
185
186
if i != -1 {
187
j := bytes.Index(s[i:], []byte("---"))
188
- s = append(s[:i], s[i:][j:]...)
189
- }
190
+ if j != -1 {
+ s = append(s[:i], s[i:][j:]...)
+ } else {
+ s = s[:i]
+ }
191
192
i = bytes.Index(s, []byte("\nNOTES:"))
193
194
s = s[:i+1]
0 commit comments