chore: remove unnecessary Error() calls#4031
Conversation
nsrip-dd
left a comment
There was a problem hiding this comment.
Profiling changes LGTM. Thanks!
@darccio if I'm not mistaken, that's specifically for |
kakkoyun
left a comment
There was a problem hiding this comment.
LGTM.
Thanks for cleaning it up.
This is my sloppiness. The original PR introduced in a haste as a response to an incident. Sorry about this. The original version was forcing to call |
This is a NOOP cosmetic change that seeks to improve the developer experience (for contributors, as well as for users who vendor dd-trace-go). In fmt.Errorf calls, the %s verb already calls Error() on error types, making the explicit call unnecessary. Tools like Cursor Bug Bot (and probably some editor tools too) complain about the redundant Error() calls; this satisfies the complaints. ...it also means users who vendor `DataDog/dd-trace-go` and who use Cursor Bug Bot (or other code review automation tools) aren't subjected to these tools' complaints about the redundant Error() calls littering pull requests. Signed-off-by: Mike Ball <[email protected]>
23c803d to
05ac9d6
Compare
|
/merge -h |
|
View all feedbacks in Devflow UI.
Add the current pull request in a queue to be processed and merged
Examples:
|
|
/merge |
|
View all feedbacks in Devflow UI.
This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
The expected merge time in
|
What does this PR do?
This is a NOOP cosmetic change that seeks to improve the developer experience (for contributors, as well as for users who vendor dd-trace-go).
In fmt.Errorf calls, the %s verb already calls Error() on error types, making the explicit call unnecessary. Tools like Cursor Bug Bot (and probably some editor tools too) complain about the redundant Error() calls; this satisfies the complaints.
...it also means users who vendor
DataDog/dd-trace-goand who use Cursor Bug Bot (or other code review automation tools) aren't subjected to these tools' complaints about the redundant Error() calls littering pull requests. So, this helps minimize that litter.Motivation
My organization vendors dd-trace-go in our own codebase(s); this improves the developer experience, particular around dd-trace-go upgrades.
Reviewer's Checklist
./scripts/lint.shlocally.