From 648f0b3d45d94760bb29e6bfe4680351d8e0364d Mon Sep 17 00:00:00 2001 From: Ryan Kohler Date: Mon, 1 Feb 2021 08:24:39 -0800 Subject: [PATCH] missed a comment --- google/internal/externalaccount/basecredentials.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/google/internal/externalaccount/basecredentials.go b/google/internal/externalaccount/basecredentials.go index c343a22..b5331e8 100644 --- a/google/internal/externalaccount/basecredentials.go +++ b/google/internal/externalaccount/basecredentials.go @@ -82,8 +82,7 @@ func (c *Config) parse(ctx context.Context) (baseCredentialSource, error) { ctx: ctx, }, nil } - } - if c.CredentialSource.File != "" { + } else if c.CredentialSource.File != "" { return fileCredentialSource{File: c.CredentialSource.File, Format: c.CredentialSource.Format}, nil } else if c.CredentialSource.URL != "" { return urlCredentialSource{URL: c.CredentialSource.URL, Format: c.CredentialSource.Format, ctx: ctx}, nil