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

Bugfix: add missing return statements in GRAPHQL and UrlEncodedForm t… #2625

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

RatkoR
Copy link
Contributor

@RatkoR RatkoR commented Apr 24, 2023

…ransports.

Two transports (GRAPHQL and UrlEncodedForm) did not have return statement at the end of if err block. Instead of returning a 'could not cleanup body' error, we continued processing.

User still got an error. But instead of early could not cleanup error, user got Internal system error which happened a few lines after the if block.

While at it, remove the not needed log.Printf() lines.

Tests are added.

Describe your PR and link to any relevant issues.

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

…ransports.

Two transports (GRAPHQL and UrlEncodedForm) did not have return
statement at the end of `if err` block. Instead of returning
a 'could not cleanup body' error, we continued processing.

User still got an error. But instead of early 'could not cleanup'
error, user gor 'Internal system error' which happened a few
lines after the if block.

Tests are added.
@coveralls
Copy link

coveralls commented Apr 24, 2023

Coverage Status

Coverage: 75.413% (-3.1%) from 78.534% when pulling 1307450 on RatkoR:missing_return into a13eca1 on 99designs:master.

@StevenACoffman StevenACoffman merged commit 2ad08ff into 99designs:master Apr 25, 2023
@StevenACoffman
Copy link
Collaborator

Thanks for fixing 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.

3 participants