refactor: simplify error handling for access token retrieval
All checks were successful
🚀 Publish Release Package / publish (push) Successful in 21s

This commit is contained in:
2025-07-15 16:48:19 -04:00
parent f5eafa8b52
commit c5cde31acf

View File

@@ -48,7 +48,7 @@ func getToken(configuration *Configuration) (*Token, error) {
return nil, err
}
if resp.StatusCode != http.StatusOK || resp.ContentLength <= 0 {
if resp.StatusCode != http.StatusOK {
return nil, errors.New("Failed to retrieve access token: " + resp.Status)
}