diff --git a/internal/commands/push.go b/internal/commands/push.go index e84f126469..75a6841a90 100644 --- a/internal/commands/push.go +++ b/internal/commands/push.go @@ -141,9 +141,6 @@ func pushBundle(ctx context.Context, repository, policyPath, dataPath string) (* configBytes := []byte("{}") configDesc := content.NewDescriptorFromBytes(oras.MediaTypeUnknownConfig, configBytes) - if err != nil { - return nil, fmt.Errorf("serializing manifest conifg: %w", err) - } if err := dest.Push(ctx, configDesc, bytes.NewReader(configBytes)); err != nil && !errors.Is(err, errdef.ErrAlreadyExists) { return nil, fmt.Errorf("pushing manifest conifg: %w", err)