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 broken return statements swallowing errors #7784

Merged
merged 1 commit into from
Jan 3, 2017

Conversation

mark-rushakoff
Copy link
Contributor

@mark-rushakoff mark-rushakoff commented Jan 3, 2017

There was no comment on either case specifying that the return nil
was deliberate instead of return err, so I'm assuming these were
typos. I added tests to conserve the error-returning behavior.

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

There was no comment on either case specifying that the `return nil`
was deliberate instead of `return err`, so I'm assuming these were
typos. I added tests to conserve the error-returning behavior.
@mark-rushakoff
Copy link
Contributor Author

@corylanou your name came up on git blame for the changed lines. Does it seem accurate that these return nils were likely typos, not deliberate?

@corylanou
Copy link
Contributor

Doh! Those had to be cut/paste errors. Ugg. Nice catch.

@mark-rushakoff mark-rushakoff added this to the 1.2.0 milestone Jan 3, 2017
@mark-rushakoff mark-rushakoff merged commit f715692 into master Jan 3, 2017
@mark-rushakoff mark-rushakoff deleted the mr-meta-errors branch January 3, 2017 17:28
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