Removes unnecessary nil check for loginData

pull/17885/head
Tom Davies 2023-07-11 16:35:33 +01:00 committed by Chris Thain
parent 9c4c3c50f0
commit 7282078993
1 changed files with 0 additions and 3 deletions

View File

@ -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"]