Skip to content

Remove unreachable code. #8

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

Merged
merged 1 commit into from
May 15, 2015
Merged

Remove unreachable code. #8

merged 1 commit into from
May 15, 2015

Conversation

dmitshur
Copy link
Contributor

Fixes #7.
Fixes Travis build.

Fixes #7.
Fixes Travis build.
@@ -365,7 +365,6 @@ func (r *HunksReader) ReadHunk() (*Hunk, error) {
if r.hunk == nil {
// Check for presence of hunk header.
if !bytes.HasPrefix(line, hunkPrefix) {
panic("X")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This looks like a debugging artifact that was unintentionally left in from commit 86544b8#diff-b426b940498a3ecfc663fa2957b679f8R354.

Copy link
Member

Choose a reason for hiding this comment

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

Good catch, that would've produced a pretty strange stack trace in that case 👍

@emidoots
Copy link
Member

Aside from my comment (which is mostly just my personal uncertainty) it all LGTM

dmitshur added a commit that referenced this pull request May 15, 2015
@dmitshur dmitshur merged commit 7eefa0f into master May 15, 2015
@dmitshur dmitshur deleted the remove-unreachable-code branch May 15, 2015 05:59
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.

Two cases of unreachable code.
2 participants