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-jxpath.git
commit c57b62718d75b13f15a22d952aa07bb60fb634e8 Author: Gary D. Gregory <[email protected]> AuthorDate: Sun Mar 16 13:29:39 2025 -0400 No need to nest else --- .../java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java b/src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java index 285a481..3f07a38 100644 --- a/src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java +++ b/src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java @@ -557,7 +557,7 @@ public class SimplePathInterpreter { if (quality == PERFECT_MATCH) { return pointer; } - else if (quality > bestQuality) { + if (quality > bestQuality) { bestQuality = quality; bestMatch = (NodePointer) pointer.clone(); }
