From 483d2860a6377ec78a531eb8dd02c7b34a87a416 Mon Sep 17 00:00:00 2001 From: Patrick Jones Date: Thu, 11 Feb 2021 03:09:42 -0800 Subject: [PATCH] Fixed testing error. Change-Id: I93775afcec60f24913ed55911b75c01bd44664b3 --- google/internal/externalaccount/sts_exchange.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/internal/externalaccount/sts_exchange.go b/google/internal/externalaccount/sts_exchange.go index 9ed4779..ca5f53e 100644 --- a/google/internal/externalaccount/sts_exchange.go +++ b/google/internal/externalaccount/sts_exchange.go @@ -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)) } var stsResp STSTokenExchangeResponse - json.Unmarshal(body, &stsResp) + err = json.Unmarshal(body, &stsResp) if err != nil { return nil, fmt.Errorf("oauth2/google: failed to unmarshal response body from Secure Token Server: %v", err)