Skip to content

Commit a9e8d51

Browse files
committed
remove extra variable
1 parent 58c9d56 commit a9e8d51

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultInterpolator.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,9 @@ private static String doSubstVars(
263263
// Using the start and stop delimiter indices, extract
264264
// the first, deepest nested variable placeholder.
265265
String variable = val.substring(startDelim + DELIM_START.length(), stopDelim);
266-
String org = variable;
267266

268267
String substValue = processSubstitution(
269-
variable, org, cycleMap, configProps, callback, postprocessor, defaultsToEmptyString);
268+
variable, cycleMap, configProps, callback, postprocessor, defaultsToEmptyString);
270269

271270
// Append the leading characters, the substituted value of
272271
// the variable, and the trailing characters to get the new
@@ -285,7 +284,6 @@ private static String doSubstVars(
285284

286285
private static String processSubstitution(
287286
String variable,
288-
String org,
289287
Set<String> cycleMap,
290288
Map<String, String> configProps,
291289
UnaryOperator<String> callback,
@@ -328,7 +326,7 @@ private static String processSubstitution(
328326

329327
// Process the operator value through substitution if it contains variables
330328
String processedOpValue =
331-
doSubstVars(opValue, org, cycleMap, configProps, callback, postprocessor, defaultsToEmptyString);
329+
doSubstVars(opValue, variable, cycleMap, configProps, callback, postprocessor, defaultsToEmptyString);
332330

333331
// Apply the operator
334332
if (":+".equals(op)) {

0 commit comments

Comments
 (0)