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.Close
is not checked inclient.go
- Struct field names in
client.go
andclient_test.go
do not follow the recommended naming conventions - Some exported types, functions and methods in
client.go
are not commented
The changes made in this PR include:
- Handling the error return value of
response.Body.Close()
in theVerifyOTP
andPushAuth
functions - Renaming the struct fields in
client.go
andclient_test.go
to 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.