Merge pull request #11926 from AdamKorcz/fix1

pkg/action: fix nil-dereference
pull/11324/merge
Joe Julian 1 year ago committed by GitHub
commit a680f72f7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save