You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2020/02/09 10:23:20 UTC
[camel] 01/03: JmsConfiguration#createInOutTemplate: Remove useless
comparison test as reported by lgtm.com.
This is an automated email from the ASF dual-hosted git repository.
pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 7d8710685b517a81835701b4e4c0ceffd4fe1eec
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Feb 9 11:18:43 2020 +0100
JmsConfiguration#createInOutTemplate: Remove useless comparison test as reported by lgtm.com.
---
.../src/main/java/org/apache/camel/component/jms/JmsConfiguration.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
index e28b2a3..e802670 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
@@ -653,7 +653,7 @@ public class JmsConfiguration implements Cloneable {
// prefer to use timeToLive over requestTimeout if both specified
long ttl = timeToLive > 0 ? timeToLive : requestTimeout;
- if (ttl > 0 && !isDisableTimeToLive()) {
+ if (!isDisableTimeToLive()) {
// only use TTL if not disabled
jmsTemplate.setTimeToLive(ttl);
}