-
Notifications
You must be signed in to change notification settings - Fork 467
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
Remove assert.New and require.New #2657
Conversation
I don't like it but will not block. |
Whats the reason for not wanting to use |
Here are a few justifications for this PR:
This is something I've been wanting to propose for a long time. |
Okay sounds good. @rkowalick can you update the title and description? |
cf84e65
to
c633b90
Compare
c633b90
to
ac09f23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a fan. Having tried it, it doesn't help much to rename the import to something else (I've used ast and req). In my current branch where I'm also (because of this PR) replacing everything by just calling <assert|require>.NoError(t, err)
explicitly, it makes for cleaner code with fewer lines, and also, I don't create requires just to send to mustDoAThing type functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little green 't, 's will be floating past my vision as I close my eyes tonight, but it all looks in order.
Remove
assert.New
andrequire.New
from the codebase.