Skip to content

Commit

Permalink
AvoidBranchingStatementAsLastInLoop (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 5, 2022
1 parent 847aa81 commit 571fc95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/java/main/org/jaxen/util/PrecedingAxisIterator.java
Expand Up @@ -199,9 +199,11 @@ public Object next() throws NoSuchElementException
// if this isn't 'self' construct 'descendant-or-self'
stack.add(childrenOrSelf);
childrenOrSelf = childrenOrSelf(result);
continue;
}
return result;
else
{
return result;
}
}
}

Expand Down

0 comments on commit 571fc95

Please sign in to comment.