remove spaces
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
3c0280c4d7
commit
37e0969f20
1 changed files with 0 additions and 2 deletions
|
|
@ -106,14 +106,12 @@ func GetRemoteAttestations(client api.Client, params FetchRemoteAttestationsPara
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to fetch attestations from %s: %w", params.Repo, err)
|
||||
}
|
||||
|
||||
return attestations, nil
|
||||
} else if params.Owner != "" {
|
||||
attestations, err := client.GetByOwnerAndDigest(params.Owner, params.Digest, params.Limit)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to fetch attestations from %s: %w", params.Owner, err)
|
||||
}
|
||||
|
||||
return attestations, nil
|
||||
}
|
||||
return nil, fmt.Errorf("owner or repo must be provided")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue