Fixed testing error.

Change-Id: I93775afcec60f24913ed55911b75c01bd44664b3
This commit is contained in:
Patrick Jones 2021-02-11 03:09:42 -08:00
parent f9a44934e9
commit 483d2860a6
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func ExchangeToken(ctx context.Context, endpoint string, request *STSTokenExchan
return nil, fmt.Errorf("oauth2/google: status code %d: %s", c, string(body)) return nil, fmt.Errorf("oauth2/google: status code %d: %s", c, string(body))
} }
var stsResp STSTokenExchangeResponse var stsResp STSTokenExchangeResponse
json.Unmarshal(body, &stsResp) err = json.Unmarshal(body, &stsResp)
if err != nil { if err != nil {
return nil, fmt.Errorf("oauth2/google: failed to unmarshal response body from Secure Token Server: %v", err) return nil, fmt.Errorf("oauth2/google: failed to unmarshal response body from Secure Token Server: %v", err)