Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lucidchart connector #1

Merged
merged 20 commits into from
Feb 6, 2025
Merged

Lucidchart connector #1

merged 20 commits into from
Feb 6, 2025

Conversation

MarcusGoldschmidt
Copy link
Collaborator

No description provided.

@MarcusGoldschmidt MarcusGoldschmidt force-pushed the goldschmidt/lucidchart-start branch from a574b47 to 816cb63 Compare January 28, 2025 23:04
@MarcusGoldschmidt MarcusGoldschmidt force-pushed the goldschmidt/lucidchart-start branch from 816cb63 to 226b93f Compare January 28, 2025 23:05
@MarcusGoldschmidt MarcusGoldschmidt marked this pull request as ready for review January 30, 2025 20:27
}

func (o *folderBuilder) Revoke(ctx context.Context, grant *v2.Grant) (annotations.Annotations, error) {
if grant.Principal.Id.ResourceType == userResourceType.Id {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: I think it's easier to read this code if we early return.

Suggested change
if grant.Principal.Id.ResourceType == userResourceType.Id {
if grant.Principal.Id.ResourceType != userResourceType.Id {
return nil, fmt.Errorf("resource type %s is not supported", grant.Principal.Id.ResourceType)
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@btipling btipling merged commit 1452525 into main Feb 6, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants