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:22 UTC
[camel] 03/03: AdviceWithTasks#createSelectorIterator: Remove
comparison test which is always true (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 dfc0b7144bd3ec26d6f3a6c73a9a4b1d362a99e5
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Feb 9 11:21:50 2020 +0100
AdviceWithTasks#createSelectorIterator: Remove comparison test which is always true (as reported by lgtm.com).
---
.../src/main/java/org/apache/camel/builder/AdviceWithTasks.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/camel-core-engine/src/main/java/org/apache/camel/builder/AdviceWithTasks.java b/core/camel-core-engine/src/main/java/org/apache/camel/builder/AdviceWithTasks.java
index 626e9ca..bd3bb22 100644
--- a/core/camel-core-engine/src/main/java/org/apache/camel/builder/AdviceWithTasks.java
+++ b/core/camel-core-engine/src/main/java/org/apache/camel/builder/AdviceWithTasks.java
@@ -542,7 +542,7 @@ public final class AdviceWithTasks {
// spool to beginning of range
current = selectFrom;
}
- return current >= selectFrom && current <= selectTo;
+ return current <= selectTo;
}
return current < list.size();