From a975fbd8a4e8e363b90db84821b6cc91b7917b4e Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:16:23 +0200 Subject: [PATCH] Fix: Moved comments --- cli/packages/util/helper.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cli/packages/util/helper.go b/cli/packages/util/helper.go index e2f0036193..e5b8ab6d93 100644 --- a/cli/packages/util/helper.go +++ b/cli/packages/util/helper.go @@ -74,17 +74,15 @@ func GetInfisicalToken(cmd *cobra.Command) (token *models.TokenDetails, err erro return nil, err } - if infisicalToken == "" { - // If no flag is passed, we first check for the universal auth access token env variable. + if infisicalToken == "" { // If no flag is passed, we first check for the universal auth access token env variable. infisicalToken = os.Getenv(INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN_NAME) - // If it's still empty after the first env check, we check for the service token env variable. - if infisicalToken == "" { + + if infisicalToken == "" { // If it's still empty after the first env check, we check for the service token env variable. infisicalToken = os.Getenv(INFISICAL_TOKEN_NAME) } } - // If it's empty, we return nothing at all. - if infisicalToken == "" { + if infisicalToken == "" { // If it's empty, we return nothing at all. return nil, nil }