-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Enable Lint Rules: bare-return & empty-lines #5512
Conversation
Signed-off-by: FlamingSaint <raghuramkannan400@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5512 +/- ##
===========================================
+ Coverage 54.23% 96.19% +41.95%
===========================================
Files 161 327 +166
Lines 8369 16011 +7642
===========================================
+ Hits 4539 15401 +10862
+ Misses 3384 435 -2949
+ Partials 446 175 -271
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -149,5 +149,5 @@ func (r *requestDurations) buildTimer(metricsFactory metrics.Factory, key record | |||
"method": key.method, | |||
}, | |||
}) | |||
return | |||
return out |
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.
We can remove the name "out" from the signature
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.
The defer function on top requires the named output as its assigning a value to it
Signed-off-by: FlamingSaint <raghuramkannan400@gmail.com>
Signed-off-by: FlamingSaint <raghuramkannan400@gmail.com>
Which problem is this PR solving?
Description of the changes
How was this change tested?
make lint
make test
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test