Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Conversation

@knqyf263
Copy link
Contributor

@knqyf263 knqyf263 commented Aug 4, 2019

commitFileIter.ForEach always returns io.EOF error, so the first commit in this PR fails.
The second commit fixes this problem by handling io.EOF.

@knqyf263 knqyf263 force-pushed the fix/handle_eof_err branch 2 times, most recently from 7d0adfc to bb4adf1 Compare August 4, 2019 02:03
Signed-off-by: knqyf263 <knqyf263@gmail.com>
@knqyf263 knqyf263 force-pushed the fix/handle_eof_err branch 2 times, most recently from e3f9637 to e536f1b Compare August 4, 2019 02:57
Signed-off-by: knqyf263 <knqyf263@gmail.com>
@knqyf263 knqyf263 force-pushed the fix/handle_eof_err branch 2 times, most recently from dfcd7f1 to a9ac7fe Compare August 4, 2019 09:09
Signed-off-by: knqyf263 <knqyf263@gmail.com>
@knqyf263 knqyf263 force-pushed the fix/handle_eof_err branch from a9ac7fe to d1f0897 Compare August 4, 2019 09:24
if nextErr != nil {
if nextErr == io.EOF {
break
} else if nextErr != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this unnecessary else

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review. I've fixed it.

Signed-off-by: knqyf263 <knqyf263@gmail.com>
@mcuadros mcuadros merged commit 6f35480 into src-d:master Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants