1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 23:34:57 +00:00

Fix golint check error

https://github.com/rancher/os/issues/2166
This commit is contained in:
niusmallnan
2017-12-06 13:45:49 +08:00
parent d8bba34a87
commit 7b474cd905
8 changed files with 13 additions and 62 deletions

View File

@@ -87,11 +87,7 @@ func ConvertIgnoreOmitEmpty(from, to interface{}) error {
decoder := yaml.NewDecoder(&buffer)
if err := decoder.Decode(to); err != nil {
return err
}
return nil
return decoder.Decode(to)
}
func Copy(d interface{}) interface{} {