diff --git a/rabbitmqclient/vault_reader.go b/rabbitmqclient/vault_reader.go index befa1977..27c12229 100644 --- a/rabbitmqclient/vault_reader.go +++ b/rabbitmqclient/vault_reader.go @@ -113,7 +113,7 @@ func (vc VaultClient) ReadCredentials(path string) (string, string, error) { return "", "", errors.New("returned Vault secret is nil") } - if secret.Warnings != nil && len(secret.Warnings) > 0 { + if len(secret.Warnings) > 0 { return "", "", fmt.Errorf("warnings were returned from Vault: %v", secret.Warnings) }