mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-17 14:48:49 +00:00
Remove unreachable redundant err check. (#134)
Signed-off-by: Mike Ng <ming@redhat.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user