Skip to content

Commit

Permalink
Remove unnecessary code. pos is always updated again before next use
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jul 4, 2023
1 parent 5c06874 commit 171cfff
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions java/org/apache/catalina/valves/rewrite/Substitution.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ private SubstitutionElement[] parseSubstitution(String sub, Map<String, RewriteM
// Static text
StaticElement newElement = new StaticElement();
newElement.value = sub.substring(pos, dollarPos);
pos = dollarPos;
elements.add(newElement);
}
if (Character.isDigit(sub.charAt(dollarPos + 1))) {
Expand Down Expand Up @@ -215,7 +214,6 @@ private SubstitutionElement[] parseSubstitution(String sub, Map<String, RewriteM
// Static text
StaticElement newElement = new StaticElement();
newElement.value = sub.substring(pos, percentPos);
pos = percentPos;
elements.add(newElement);
}
if (Character.isDigit(sub.charAt(percentPos + 1))) {
Expand Down

0 comments on commit 171cfff

Please sign in to comment.