-
Notifications
You must be signed in to change notification settings - Fork 483
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
Exit mergeChildrenCriticalPath early for an empty critical path #1974
Exit mergeChildrenCriticalPath early for an empty critical path #1974
Conversation
Signed-off-by: Maksim Gaponov <gaponovmaxev@gmail.com>
@@ -163,6 +163,9 @@ function mergeChildrenCriticalPath( | |||
spanID: string, | |||
criticalPath: criticalPathSection[] | |||
): criticalPathSection[] { | |||
if (criticalPath.length == 0) { |
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.
linter complains
166:27 error Expected '===' and instead saw '=='
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.
couldn't this be just if (!criticalPath)
?
Codecov ReportAttention:
📢 Thoughts on this report? Let us know! |
Signed-off-by: Maksim Gaponov <gaponovmaxev@gmail.com>
Head branch was pushed to by a user without write access
Do we need a test here to satisfy codecov? |
tests are always welcome, but from the outside of this function it seems it would be impossible to distinguish, since fully executing the logic still returns the same |
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test