feat(tests): .Close() can be "unchecked"

This commit is contained in:
2025-06-04 14:41:53 +02:00
parent def5d097a4
commit a8341a9b44
3 changed files with 3 additions and 7 deletions

View File

@@ -116,14 +116,11 @@ func (chart *HelmChart) SaveTemplates(templateDir string) {
fmt.Println(utils.IconFailure, err)
os.Exit(1)
}
defer f.Close()
if _, err := f.Write(t); err != nil {
log.Fatal("error writing template file:", err)
}
if err := f.Close(); err != nil {
log.Fatal("error closing template file:", err)
}
}
}