Skip to content

Commit

Permalink
Removes unnecessary nil check for loginData
Browse files Browse the repository at this point in the history
  • Loading branch information
t-davies authored and cthain committed Jul 12, 2023
1 parent 9c4c3c5 commit 7282078
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions agent/connect/ca/provider_vault_auth_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 7282078

Please sign in to comment.