From 9c218789db45e9b80bb8bec5c69539dd386d9668 Mon Sep 17 00:00:00 2001 From: Patrick Jones Date: Tue, 26 Jan 2021 11:18:56 -0800 Subject: [PATCH] Final nits. Change-Id: I662df725703b5fbc109c2b3bcdb9780424619bdc --- google/internal/externalaccount/impersonate.go | 1 - google/internal/externalaccount/impersonate_test.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/google/internal/externalaccount/impersonate.go b/google/internal/externalaccount/impersonate.go index 430e6e3..1d29c46 100644 --- a/google/internal/externalaccount/impersonate.go +++ b/google/internal/externalaccount/impersonate.go @@ -80,5 +80,4 @@ func (its impersonateTokenSource) Token() (*oauth2.Token, error) { Expiry: expiry, TokenType: "Bearer", }, nil - } diff --git a/google/internal/externalaccount/impersonate_test.go b/google/internal/externalaccount/impersonate_test.go index 5526a42..a2d8978 100644 --- a/google/internal/externalaccount/impersonate_test.go +++ b/google/internal/externalaccount/impersonate_test.go @@ -29,7 +29,6 @@ var ( func TestImpersonation(t *testing.T) { impersonateServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if got, want := r.URL.String(), "/"; got != want { t.Errorf("URL.String(): got %v but want %v", got, want) } @@ -93,5 +92,4 @@ func TestImpersonation(t *testing.T) { if got, want := tok.TokenType, "Bearer"; got != want { t.Errorf("Unexpected TokenType: got %v, but wanted %v", got, want) } - }