minor nits

This commit is contained in:
Yann Hamon 2020-06-01 12:20:15 +02:00
parent b4547ce367
commit 8fc1df8d8b
5 changed files with 24 additions and 24 deletions

View file

@ -56,7 +56,5 @@ func (r LocalSchemas) DownloadSchema(resourceKind, resourceAPIVersion, k8sVersio
return nil, fmt.Errorf("failed to open schema %s", schemaFile)
}
defer f.Close()
content, err := ioutil.ReadAll(f)
return content, err
return ioutil.ReadAll(f)
}