You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gz...@apache.org on 2019/06/04 07:08:13 UTC
[camel] 01/02: Simplify code
This is an automated email from the ASF dual-hosted git repository.
gzurowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 4e42dd21de1da9b34dbe874f2f2da76ee84eccee
Author: Gregor Zurowski <gr...@zurowski.org>
AuthorDate: Tue Jun 4 09:06:25 2019 +0200
Simplify code
---
.../java/org/apache/camel/component/aws/sqs/SqsConfiguration.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/components/camel-aws-sqs/src/main/java/org/apache/camel/component/aws/sqs/SqsConfiguration.java b/components/camel-aws-sqs/src/main/java/org/apache/camel/component/aws/sqs/SqsConfiguration.java
index 894a7b1..c665fb5 100644
--- a/components/camel-aws-sqs/src/main/java/org/apache/camel/component/aws/sqs/SqsConfiguration.java
+++ b/components/camel-aws-sqs/src/main/java/org/apache/camel/component/aws/sqs/SqsConfiguration.java
@@ -107,10 +107,7 @@ public class SqsConfiguration implements Cloneable {
boolean isFifoQueue() {
// AWS docs suggest this is valid derivation.
// FIFO queue names must end with .fifo, and standard queues cannot
- if (queueName.endsWith(".fifo")) {
- return true;
- }
- return false;
+ return queueName.endsWith(".fifo");
}
public String getAmazonAWSHost() {