From 7282078993aa51915afa801bdabded0f78397cb5 Mon Sep 17 00:00:00 2001 From: Tom Davies Date: Tue, 11 Jul 2023 16:35:33 +0100 Subject: [PATCH] Removes unnecessary nil check for loginData --- agent/connect/ca/provider_vault_auth_aws.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/agent/connect/ca/provider_vault_auth_aws.go b/agent/connect/ca/provider_vault_auth_aws.go index 03d4ec4b952d..02abf39824cb 100644 --- a/agent/connect/ca/provider_vault_auth_aws.go +++ b/agent/connect/ca/provider_vault_auth_aws.go @@ -72,9 +72,6 @@ func (g *AWSLoginDataGenerator) GenerateLoginData(authMethod *structs.VaultAuthM if err != nil { return nil, fmt.Errorf("aws auth failed to generate login data: %w", err) } - if loginData == nil { - return nil, fmt.Errorf("got nil response from GenerateLoginData") - } // If a Vault role name is specified, we need to manually add this role, ok := authMethod.Params["role"]