Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@iamnande
Copy link
Contributor

this patch updates the Only/OnlyID methods in the builder template from:

// Returns a *NotSingularError when exactly one {{ $.Name }} entity is not found.
to
// Returns a *NotSingularError when more than exactly one {{ $.Name }} ID is found.

in an effort to be more explicit in the explanation of the behavior of the methods.

I caught myself reading the difference between the lines more than a few times just to make sure I truly understood the behavior. Maybe others agree?

this patch updates the Only/OnlyID methods in the builder template from:

> // Returns a *NotSingularError when exactly one {{ $.Name }} entity is not found.
to
> // Returns a *NotSingularError when more than exactly one {{ $.Name }} ID is found.

in an effort to be more explicit in the explanation of the behavior of the methods.
@iamnande
Copy link
Contributor Author

i was able to run go generate ./... just fine. 100% of the files committed in 7111fab are the result of running it.

@a8m a8m merged commit 896f2b2 into ent:master Jan 23, 2022
@a8m
Copy link
Member

a8m commented Jan 23, 2022

Thanks for your contribution @iamnande 🙏 ❤️

@all-contributors please add @iamnande for code

@allcontributors
Copy link
Contributor

@a8m

I've put up a pull request to add @iamnande! 🎉

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