mirror of
https://github.com/rancher/rke.git
synced 2025-09-20 10:59:21 +00:00
Fix #447 golint
This commit is contained in:
@@ -112,11 +112,8 @@ func (c *Cluster) deployAddonsInclude(ctx context.Context) error {
|
|||||||
|
|
||||||
func validateUserAddonYAML(addon []byte) error {
|
func validateUserAddonYAML(addon []byte) error {
|
||||||
yamlContents := make(map[string]interface{})
|
yamlContents := make(map[string]interface{})
|
||||||
if err := yaml.Unmarshal(addon, &yamlContents); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return yaml.Unmarshal(addon, &yamlContents)
|
||||||
}
|
}
|
||||||
|
|
||||||
func isFilePath(addonPath string) bool {
|
func isFilePath(addonPath string) bool {
|
||||||
|
Reference in New Issue
Block a user