Lint Tests Passing
All checks were successful
Continuous Integration / CI (push) Successful in 1m40s
All checks were successful
Continuous Integration / CI (push) Successful in 1m40s
Made lint tests pass
This commit is contained in:
@@ -50,7 +50,7 @@ func (api *TastytradeAPI) Authenticate2(username, password string, remember bool
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
|
||||
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusCreated {
|
||||
return fmt.Errorf("authentication failed: status code %d", resp.StatusCode)
|
||||
@@ -97,7 +97,7 @@ func (api *TastytradeAPI) AuthRemember(remember bool) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
|
||||
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusCreated {
|
||||
return fmt.Errorf("authentication failed: status code %d", resp.StatusCode)
|
||||
|
||||
Reference in New Issue
Block a user