From 1555f5377fa97ff99108efe437fb243a5fe1dae7 Mon Sep 17 00:00:00 2001 From: Patrick Jones Date: Thu, 7 Jan 2021 16:10:26 -0800 Subject: [PATCH] Fixed 3 nits. Change-Id: Iaa6de1c6af5f3efe314be069a795222cee1d5fd8 --- google/internal/externalaccount/basecredentials.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google/internal/externalaccount/basecredentials.go b/google/internal/externalaccount/basecredentials.go index 1bbab06..3291d46 100644 --- a/google/internal/externalaccount/basecredentials.go +++ b/google/internal/externalaccount/basecredentials.go @@ -38,7 +38,7 @@ func (c *Config) TokenSource(ctx context.Context) oauth2.TokenSource { return oauth2.ReuseTokenSource(nil, ts) } -// Subject token file types +// Subject token file types. const ( fileTypeText = "text" fileTypeJSON = "json" @@ -51,7 +51,7 @@ type format struct { SubjectTokenFieldName string `json:"subject_token_field_name"` } -// CredentialSource stores the information necessary to retrieve the credentials for the STS exchange +// CredentialSource stores the information necessary to retrieve the credentials for the STS exchange. type CredentialSource struct { File string `json:"file"` @@ -65,7 +65,7 @@ type CredentialSource struct { Format format `json:"format"` } -// instance determines the type of CredentialSource needed +// parse determines the type of CredentialSource needed func (c *Config) parse() baseCredentialSource { if c.CredentialSource.File != "" { return fileCredentialSource{File: c.CredentialSource.File, Format: c.CredentialSource.Format}