app-services-cli
app-services-cli copied to clipboard
Remove http response bodies where not required
Description
Some commands while making api request use the http.Response object even if it is not required. This increases the lines of code and might result in unseen lint errors.
After quick research it looks like from 1.18.0 linting capabilities are much better - they can detect return types from underlying library structures. This means that to enable 1.18.0 we can:
- Disable that specific rule across CLI and remove any defer statements
- Add defer body.close everywhere even if it is pointless
Option 1 seems much desired.
Will vote for 1 too.
Fixed