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

Delete() funcs should return nil if not exists #379

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sebrandon1
Copy link
Collaborator

There seems to be a mismatch of how we expect Delete() funcs throughout the repo.

The general consensus from most of the Delete() functions is that we should return nil because the object doesn't exist. There are a few outliers that I changed in this PR that were returning an error because an item didn't exist.

I have adjusted all of the Delete() funcs to set the builder.Object to nil and then return nil

@sebrandon1 sebrandon1 force-pushed the delete_returns branch 2 times, most recently from d125130 to 7c79708 Compare November 1, 2024 15:42
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.

1 participant