Commit 5267c0d4 authored by Rijnard van Tonder's avatar Rijnard van Tonder

The nil check before the range loop is redundant

Signed-off-by: 's avatarRijnard van Tonder <hi.teresy@gmail.com>
parent e7d93f23
......@@ -36,11 +36,9 @@ type Files map[string][]byte
// Given an []*any.Any (the format for files in a chart.Chart), extract a map of files.
func NewFiles(from []*any.Any) Files {
files := map[string][]byte{}
if from != nil {
for _, f := range from {
files[f.TypeUrl] = f.Value
}
}
return files
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment