fix (Issue #10685): Do not panic on invalid value locations

Signed-off-by: Mirco Zanchi <mirco.zanchi@gmail.com>
pull/10692/head
Mirco Zanchi 4 years ago
parent 9bf3a14203
commit d9e073a208

@ -117,5 +117,8 @@ func readFile(filePath string, p getter.Providers) ([]byte, error) {
return ioutil.ReadFile(filePath) return ioutil.ReadFile(filePath)
} }
data, err := g.Get(filePath, getter.WithURL(filePath)) data, err := g.Get(filePath, getter.WithURL(filePath))
if err != nil {
return nil, err
}
return data.Bytes(), err return data.Bytes(), err
} }

Loading…
Cancel
Save