diff --git a/pkg/spoke/controllers/manifestcontroller/manifestwork_controller.go b/pkg/spoke/controllers/manifestcontroller/manifestwork_controller.go index 2996a991c..549f2cea0 100644 --- a/pkg/spoke/controllers/manifestcontroller/manifestwork_controller.go +++ b/pkg/spoke/controllers/manifestcontroller/manifestwork_controller.go @@ -281,10 +281,6 @@ func (m *ManifestWorkController) decodeUnstructured(data []byte) (*unstructured. return nil, fmt.Errorf("failed to decode object: %w", err) } - if err != nil { - return nil, fmt.Errorf("failed to find gvr from restmapping: %w", err) - } - return unstructuredObj, nil }