pkg/action: fix nil-dereference

Signed-off-by: AdamKorcz <adam@adalogics.com>
pull/11926/head
AdamKorcz 1 year ago
parent d27d1bde4c
commit 6fc815da5a

@ -153,6 +153,9 @@ func (s *Show) Run(chartpath string) (string, error) {
func findReadme(files []*chart.File) (file *chart.File) { func findReadme(files []*chart.File) (file *chart.File) {
for _, file := range files { for _, file := range files {
for _, n := range readmeFileNames { for _, n := range readmeFileNames {
if file == nil {
continue
}
if strings.EqualFold(file.Name, n) { if strings.EqualFold(file.Name, n) {
return file return file
} }

Loading…
Cancel
Save