Prefer declaration over initialization in grpc query handlers #3376
Labels
good first issue
Good for newcomers
type: code hygiene
Clean up code but without changing functionality or interfaces
Summary
Taken from #3346 (comment), there's a preference for declaring and not initializing variables in the code base.
Problem Definition
Be consistent with the use of declarations where applicable, prefer declarations over declaration + initialization in the code base. This appears to exist in most of the grpc handlers, some examples (non exhaustive):
Changing these usually also requires the tests be changed in order to expect the nil slice in the cases where nothing is returned.
Proposal
Change occurrences of initialization into declaration in the query handlers (and the tests that depend on the response).
For Admin Use
The text was updated successfully, but these errors were encountered: