Skip to content

Commit

Permalink
Remove unnecessary validation
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriela S. Soria <[email protected]>
  • Loading branch information
gsoria committed Oct 4, 2023
1 parent 12f072b commit 6c8489e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions resources/codebuild-source-credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ func ListCodeBuildSourceCredential(sess *session.Session) ([]Resource, error) {
params := &codebuild.ListSourceCredentialsInput{}

resp, err := svc.ListSourceCredentials(params)

if err != nil {
return nil, err
}

if resp == nil {
return nil, nil
}

for _, credential := range resp.SourceCredentialsInfos {
resources = append(resources, &CodeBuildSourceCredential{
svc: svc,
Expand Down

0 comments on commit 6c8489e

Please sign in to comment.