We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 565af23 commit c2c7bbeCopy full SHA for c2c7bbe
resource/composed/composed.go
@@ -63,11 +63,7 @@ func To[T runtime.Object](un *Unstructured, obj T) error {
63
return errors.Errorf("GVK %v is not known by the scheme for the provided object type", un.GetObjectKind().GroupVersionKind())
64
}
65
66
- err = runtime.DefaultUnstructuredConverter.FromUnstructured(un.Object, obj)
67
- if err != nil {
68
- return err
69
- }
70
- return nil
+ return runtime.DefaultUnstructuredConverter.FromUnstructured(un.Object, obj)
71
72
73
// From creates a new unstructured composed resource from the supplied object.
0 commit comments