mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
pkg/action: fix nil-dereference
Signed-off-by: AdamKorcz <adam@adalogics.com>
This commit is contained in:
parent
d27d1bde4c
commit
6fc815da5a
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue