You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/06/17 10:32:04 UTC
[camel] 09/14: (chores) camel-hashicorp-vault: removed unused method parameters
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3269c28e1b4f69fc0afe4fc3d51aa9399f78588e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 17 10:24:55 2022 +0200
(chores) camel-hashicorp-vault: removed unused method parameters
---
.../camel/component/hashicorp/vault/HashicorpVaultProducer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java
index 9c54918f19b..f4743bd7dc7 100644
--- a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java
+++ b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultProducer.java
@@ -56,7 +56,7 @@ public class HashicorpVaultProducer extends DefaultProducer {
getSecret(exchange);
break;
case deleteSecret:
- deleteSecret(exchange);
+ deleteSecret();
break;
default:
throw new IllegalArgumentException("Unsupported operation");
@@ -82,7 +82,7 @@ public class HashicorpVaultProducer extends DefaultProducer {
exchange.getMessage().setBody(rawSecret.getData());
}
- private void deleteSecret(Exchange exchange) {
+ private void deleteSecret() {
VaultKeyValueOperations keyValue
= getEndpoint().getVaultTemplate().opsForKeyValue(getEndpoint().getConfiguration().getSecretsEngine(),
VaultKeyValueOperationsSupport.KeyValueBackend.versioned());