This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
commit 620558257091c229a67afb66b6900e78fa9d05fd Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Fri Apr 11 18:24:47 2025 -0400 No need to nest block --- src/main/java/org/apache/commons/jexl3/internal/Frame.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/jexl3/internal/Frame.java b/src/main/java/org/apache/commons/jexl3/internal/Frame.java index 3e22c0e9..51da5d35 100644 --- a/src/main/java/org/apache/commons/jexl3/internal/Frame.java +++ b/src/main/java/org/apache/commons/jexl3/internal/Frame.java @@ -167,12 +167,11 @@ class ReferenceFrame extends Frame { final Object o = stack[s]; if (o instanceof CaptureReference) { return (CaptureReference) o; - } else { - // change the type of the captured register, wrap the value in a reference - final CaptureReference captured = new CaptureReference(o); - stack[s] = captured; - return captured; } + // change the type of the captured register, wrap the value in a reference + final CaptureReference captured = new CaptureReference(o); + stack[s] = captured; + return captured; } @Override