You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/12/27 05:35:27 UTC
(camel) branch main updated: early exit from loop when the condition is met (#12608)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 4805ba2f3b2 early exit from loop when the condition is met (#12608)
4805ba2f3b2 is described below
commit 4805ba2f3b282714af991f8b5a89419384af0813
Author: Dmitry Kryukov <dk...@users.noreply.github.com>
AuthorDate: Wed Dec 27 08:35:21 2023 +0300
early exit from loop when the condition is met (#12608)
---
.../apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java
index 69011ff29e9..363447c9e21 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelTraceAction.java
@@ -281,6 +281,7 @@ public class CamelTraceAction extends ActionBaseCommand {
for (Row r : rows) {
if (r.first) {
position = counter;
+ break;
}
}
}