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.
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 toresults
before some checks but that would lessen readability.