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

Avoid named returns #68

Closed
wants to merge 10 commits into from
Closed

Avoid named returns #68

wants to merge 10 commits into from

Conversation

andig
Copy link
Contributor

@andig andig commented Apr 10, 2023

Afaikt idiomatic Go tries to avoid named returns where possible. It makes the code clearer and easier to read.

This PR updates the obvious methods, though not all. The Client has the potential to shave a few ns by not assigning to results before some checks but that would lessen readability.

asciiclient.go Show resolved Hide resolved
@andig andig closed this May 2, 2023
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.

2 participants