Remove unreachable redundant err check. (#134)

Signed-off-by: Mike Ng <ming@redhat.com>
This commit is contained in:
Mike Ng
2022-05-06 20:54:09 -04:00
committed by GitHub
parent 2e58714199
commit 70d6369be4

View File

@@ -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
}