Fix issue #708: Error handling, naming conventions, and commenting
This PR addresses the following issues in the GitLab Shell project:
- Error return value of
response.Body.Closeis not checked inclient.go - Struct field names in
client.goandclient_test.godo not follow the recommended naming conventions - Some exported types, functions and methods in
client.goare not commented
The changes made in this PR include:
- Handling the error return value of
response.Body.Close()in theVerifyOTPandPushAuthfunctions - Renaming the struct fields in
client.goandclient_test.goto follow the recommended naming conventions - Adding comments for the exported types, functions and methods in
client.go
The changes have been verified by running the unit tests, which are now passing.