Skip to content

Commit e64d5b1

Browse files
erikgbCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Erik Godding Boye <egboye@gmail.com>
1 parent ea0c881 commit e64d5b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/install/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func printReleaseSummary(out io.Writer, rac release.Accessor) {
287287
}
288288
}
289289

290-
// Only Application chart type is installable.
290+
// Only Application chart types are installable.
291291
func checkIfInstallable(cac chart.Accessor) error {
292292
if cac.IsLibraryChart() {
293293
return errors.New("library charts are not installable")

pkg/uninstall/uninstall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func addCRDAnnotations(ctx context.Context, o options) error {
200200
continue
201201
}
202202

203-
if entry.Metadata != nil && entry.Metadata.Name != "" {
203+
if entry.Metadata == nil || entry.Metadata.Name == "" {
204204
continue
205205
}
206206

0 commit comments

Comments
 (0)