Skip to content

Commit 8f3b9bd

Browse files
committed
fix: Add missing error handling for chart file writing
1 parent d19a056 commit 8f3b9bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/updater/helm.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ func (u *Updater) Apply(file, newVersion string) error {
3333

3434
metadata.Version = newVersion
3535

36-
helmutils.SaveChartfile(file, metadata)
36+
if err := helmutils.SaveChartfile(file, metadata); err == nil {
37+
return err
38+
}
39+
3740

3841
return nil
3942
}

0 commit comments

Comments
 (0)