Skip to content

Commit 3635e64

Browse files
committed
more
1 parent 306e84b commit 3635e64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/connector/invitation.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import (
1010
"github.com/conductorone/baton-sdk/pkg/connectorbuilder"
1111
"github.com/conductorone/baton-sdk/pkg/pagination"
1212
"github.com/conductorone/baton-sdk/pkg/types/resource"
13-
"github.com/conductorone/baton-sdk/pkg/uhttp"
1413
"github.com/google/go-github/v69/github"
15-
"google.golang.org/grpc/codes"
1614
)
1715

1816
func invitationToUserResource(invitation *github.Invitation) (*v2.Resource, error) {
@@ -72,7 +70,7 @@ func (i *invitationResourceType) List(ctx context.Context, parentID *v2.Resource
7270
})
7371
if err != nil {
7472
if isNotFoundError(resp) {
75-
return nil, "", nil, uhttp.WrapErrors(codes.NotFound, fmt.Sprintf("org: %s not found", orgName))
73+
return nil, "", nil, nil
7674
}
7775
return nil, "", nil, fmt.Errorf("github-connector: ListPendingOrgInvitatioins failed: %w", err)
7876
}

0 commit comments

Comments
 (0)