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

Replaced ReadAll and Unmarshal with NewDecoder #573

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

Fank
Copy link
Contributor

@Fank Fank commented Sep 13, 2022

What type of PR is this?

  • cleanup

What this PR does / why we need it:

Replaced all io.ReadAll & json.Unmarshal with json.NewDecoder(...).Decode(...).
In some cases the original error was not returned, which is now the case.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Additional documentation e.g., usage docs, etc.:

Was found while changing code in #570

@andygrunwald andygrunwald merged commit 2b3e37b into andygrunwald:main Oct 19, 2022
@andygrunwald
Copy link
Owner

Thanks a lot @Fank!
I did a few (minor) follow up changes:

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