Skip to content
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

Fix ineffectual assignment to lastLineIdx #147

Merged
merged 1 commit into from
Aug 5, 2019

Conversation

muesli
Copy link
Contributor

@muesli muesli commented Jul 20, 2019

Please review this thoroughly, I'm not sure I can properly test this change.
However I noticed that the assignment to lastLineIdx in line 93 is ineffectual,
as it'll always get overwritten in the line below. I can only assume this
either means the else-block was missing (which is what I'm fixing here), or it's
an old check that's just lingering around and was forgotten to be removed during
refactoring.

cmp/report_slices.go Outdated Show resolved Hide resolved
Please review this thoroughly, I'm not sure I can properly test this change.
However I noticed that the assignment to lastLineIdx in line 93 is ineffectual,
as it'll always get overwritten in the line below. I can only assume this
means we meant to assign the value to maxLineLen instead.
@dsnet dsnet merged commit 208900a into google:master Aug 5, 2019
@dsnet
Copy link
Collaborator

dsnet commented Aug 5, 2019

Thank you for catching this!

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.

None yet

2 participants